summaryrefslogtreecommitdiff
path: root/source3/include/smb_macros.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-05-05 10:41:59 -0700
committerJeremy Allison <jra@samba.org>2011-05-05 10:41:59 -0700
commit4f41be356a4e6b311d30de3b2e36e4c33aa72ca3 (patch)
tree91adb9035c762c36a6cb24f242c11408779bd3f7 /source3/include/smb_macros.h
parent10a628b6e181af07f0c43db36ba017411b4eaaaa (diff)
downloadsamba-4f41be356a4e6b311d30de3b2e36e4c33aa72ca3.tar.gz
samba-4f41be356a4e6b311d30de3b2e36e4c33aa72ca3.tar.bz2
samba-4f41be356a4e6b311d30de3b2e36e4c33aa72ca3.zip
Fix many const compiler warnings.
Diffstat (limited to 'source3/include/smb_macros.h')
-rw-r--r--source3/include/smb_macros.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h
index 79aa4c5406..f7cfaaf325 100644
--- a/source3/include/smb_macros.h
+++ b/source3/include/smb_macros.h
@@ -123,6 +123,7 @@
/* Extra macros added by Ying Chen at IBM - speed increase by inlining. */
#define smb_buf(buf) (((char *)(buf)) + smb_size + CVAL(buf,smb_wct)*2)
+#define smb_buf_const(buf) (((const 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'. */