summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-02 09:12:52 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-02 13:08:39 +0100
commit096b4a9bd054650f3f01be41e23b4168686ed9f2 (patch)
tree3ca13491917c2f44855d502b3445bf1c5d571564 /source4/libcli/smb2
parent23bec6c670073fc419908c65918d885e6d9553e2 (diff)
downloadsamba-096b4a9bd054650f3f01be41e23b4168686ed9f2.tar.gz
samba-096b4a9bd054650f3f01be41e23b4168686ed9f2.tar.bz2
samba-096b4a9bd054650f3f01be41e23b4168686ed9f2.zip
s4:libcli/smb2: s/class/info_class
metze
Diffstat (limited to 'source4/libcli/smb2')
-rw-r--r--source4/libcli/smb2/getinfo.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/libcli/smb2/getinfo.c b/source4/libcli/smb2/getinfo.c
index b462bab1de..14d911683e 100644
--- a/source4/libcli/smb2/getinfo.c
+++ b/source4/libcli/smb2/getinfo.c
@@ -95,18 +95,19 @@ NTSTATUS smb2_getinfo(struct smb2_tree *tree, TALLOC_CTX *mem_ctx,
/*
map a generic info level to a SMB2 info level
*/
-uint16_t smb2_getinfo_map_level(uint16_t level, uint8_t class)
+uint16_t smb2_getinfo_map_level(uint16_t level, uint8_t info_class)
{
- if (class == SMB2_GETINFO_FILE &&
+ if (info_class == SMB2_GETINFO_FILE &&
level == RAW_FILEINFO_SEC_DESC) {
return SMB2_GETINFO_SECURITY;
}
- if ((level & 0xFF) == class) {
+ if ((level & 0xFF) == info_class) {
return level;
} else if (level > 1000) {
- return ((level-1000)<<8) | class;
+ return ((level-1000)<<8) | info_class;
}
- DEBUG(0,("Unable to map SMB2 info level 0x%04x of class %d\n", level, class));
+ DEBUG(0,("Unable to map SMB2 info level 0x%04x of class %d\n",
+ level, info_class));
return 0;
}