mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
fixed a problem with the smb_buf() macro on some compilers
This commit is contained in:
parent
1c92fab405
commit
66d6d4810a
@ -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'. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user