s4:libcli/raw: remove unused smb_len(), _smb_setlen() and _smb2_setlen() macros
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2011 12:02:57 +0000 (14:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2011 15:15:23 +0000 (17:15 +0200)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Oct 19 17:15:23 CEST 2011 on sn-devel-104

source4/libcli/raw/smb.h

index fdf3a1559ba461806c1b805f016703b0065777c0..ced74133a749ceb9df25b45ba15db12839c591d3 100644 (file)
 #define FS_ATTR_ENCRYPTION                        0x00020000
 #define FS_ATTR_NAMED_STREAMS                     0x00040000
 
-#define smb_len(buf) (PVAL(buf,3)|(PVAL(buf,2)<<8)|(PVAL(buf,1)<<16))
-#define _smb_setlen(buf,len) do {(buf)[0] = 0; (buf)[1] = ((len)&0x10000)>>16; \
-        (buf)[2] = ((len)&0xFF00)>>8; (buf)[3] = (len)&0xFF;} while (0)
-#define _smb2_setlen(buf,len) do {(buf)[0] = 0; (buf)[1] = ((len)&0xFF0000)>>16; \
-        (buf)[2] = ((len)&0xFF00)>>8; (buf)[3] = (len)&0xFF;} while (0)
-
 #include "source4/libcli/raw/trans2.h"
 #include "libcli/raw/interfaces.h"
 #include "libcli/smb/smb_common.h"