summaryrefslogtreecommitdiff
path: root/source3/include/smb_macros.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-04-16 13:10:54 +0000
committerAndrew Tridgell <tridge@samba.org>2002-04-16 13:10:54 +0000
commit4fd802c444eac0e4ef270d35e6675d7a8f1de57f (patch)
tree8e74ec7a2484e36e95bb2dcff7d531b1f24ba024 /source3/include/smb_macros.h
parentf70836df9e44aaf076447190b310e43258179c23 (diff)
downloadsamba-4fd802c444eac0e4ef270d35e6675d7a8f1de57f.tar.gz
samba-4fd802c444eac0e4ef270d35e6675d7a8f1de57f.tar.bz2
samba-4fd802c444eac0e4ef270d35e6675d7a8f1de57f.zip
fixed a problem with the smb_buf() macro on some compilers
(This used to be commit 66d6d4810ab7b0a1bf2039c387938aad69e01569)
Diffstat (limited to 'source3/include/smb_macros.h')
-rw-r--r--source3/include/smb_macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h
index 27a5961651..a2351c705e 100644
--- a/source3/include/smb_macros.h
+++ b/source3/include/smb_macros.h
@@ -169,7 +169,7 @@
#define SMB_ROUNDUP_ALLOCATION(s) ((s) ? (SMB_ROUNDUP((SMB_OFF_T)((s)+1), ((SMB_OFF_T)SMB_ROUNDUP_ALLOCATION_SIZE))) : 0 )
/* Extra macros added by Ying Chen at IBM - speed increase by inlining. */
-#define smb_buf(buf) ((buf) + smb_size + CVAL(buf,smb_wct)*2)
+#define smb_buf(buf) (((char *)(buf)) + smb_size + CVAL(buf,smb_wct)*2)
#define smb_buflen(buf) (SVAL(buf,smb_vwv0 + (int)CVAL(buf, smb_wct)*2))
/* the remaining number of bytes in smb buffer 'buf' from pointer 'p'. */