mirror of
https://github.com/samba-team/samba.git
synced 2025-12-11 08:23:49 +03:00
Fixed allocation bug in database prog. Some format fixes.
Jeremy.
This commit is contained in:
@@ -159,6 +159,7 @@
|
||||
#define UNIXERROR(defclass,deferror) unix_error_packet(outbuf,defclass,deferror,__LINE__,__FILE__)
|
||||
|
||||
#define SMB_ROUNDUP(x,g) (((x)+((g)-1))&~((g)-1))
|
||||
#define SMB_ROUNDUP_ALLOCATION(s) (SMB_ROUNDUP((SMB_OFF_T)((s)+1), ((SMB_OFF_T)SMB_ROUNDUP_ALLOCATION_SIZE)))
|
||||
|
||||
/* Extra macros added by Ying Chen at IBM - speed increase by inlining. */
|
||||
#define smb_buf(buf) (buf + smb_size + CVAL(buf,smb_wct)*2)
|
||||
|
||||
Reference in New Issue
Block a user