From 096b4a9bd054650f3f01be41e23b4168686ed9f2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 2 Feb 2009 09:12:52 +0100 Subject: s4:libcli/smb2: s/class/info_class metze --- source4/libcli/smb2/getinfo.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source4') 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; } -- cgit