]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:util: Move VWV macro to smb_constants.h
authorAndreas Schneider <asn@samba.org>
Thu, 17 Jan 2019 10:03:14 +0000 (11:03 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 May 2019 19:33:25 +0000 (19:33 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/byteorder.h
libcli/smb/smb_constants.h

index 3e991fbbb2fcead01b99ee1d4c28767cc137d956..d58e6d0b7d7c730a4ddd29db6053d7f9316361d5 100644 (file)
@@ -128,7 +128,4 @@ it also defines lots of intermediate macros, just ignore those :-)
 #define RSBVAL(buf,pos,val) SBVAL(buf,pos,BREV(val))
 #define RSBVALS(buf,pos,val) SBVALS(buf,pos,BREV(val))
 
-/* macros for accessing SMB protocol elements */
-#define VWV(vwv) ((vwv)*2)
-
 #endif /* _BYTEORDER_H */
index 47b5629743b6f719aa9d6072052fd9a2e574e98b..68476939a9a72d60626c094dafab567c6cdc97c8 100644 (file)
@@ -59,6 +59,9 @@
 #define HDR_WCT 32
 #define HDR_VWV 33
 
+/* Macros for accessing SMB protocol elements */
+#define VWV(vwv) ((vwv)*2)
+
 #define smb_len_nbt(buf) (RIVAL(buf, 0) & 0x1FFFF)
 #define _smb_setlen_nbt(buf,len) RSIVAL(buf, 0, (len) & 0x1FFFF)
 #define smb_setlen_nbt(buf, len) do { \