svn commit: samba r18211 - in branches/SAMBA_4_0/source: libcli/raw
smb_server
tridge at samba.org
tridge at samba.org
Thu Sep 7 09:49:35 GMT 2006
Author: tridge
Date: 2006-09-07 09:49:34 +0000 (Thu, 07 Sep 2006)
New Revision: 18211
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18211
Log:
wct is not a size, so don't use size_t
this should fix a pile of printf format warnings
Modified:
branches/SAMBA_4_0/source/libcli/raw/request.h
branches/SAMBA_4_0/source/smb_server/smb_server.h
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/raw/request.h
===================================================================
--- branches/SAMBA_4_0/source/libcli/raw/request.h 2006-09-07 09:38:49 UTC (rev 18210)
+++ branches/SAMBA_4_0/source/libcli/raw/request.h 2006-09-07 09:49:34 UTC (rev 18211)
@@ -45,7 +45,7 @@
/* the command words and command word count. vwv points
into the raw buffer */
uint8_t *vwv;
- size_t wct;
+ uint_t wct;
/* the data buffer and size. data points into the raw buffer */
uint8_t *data;
Modified: branches/SAMBA_4_0/source/smb_server/smb_server.h
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb_server.h 2006-09-07 09:38:49 UTC (rev 18210)
+++ branches/SAMBA_4_0/source/smb_server/smb_server.h 2006-09-07 09:49:34 UTC (rev 18211)
@@ -382,7 +382,7 @@
/* useful way of catching wct errors with file and line number */
#define SMBSRV_CHECK_WCT(req, wcount) do { \
if ((req)->in.wct != (wcount)) { \
- DEBUG(1,("Unexpected WCT %d at %s(%d) - expected %d\n", \
+ DEBUG(1,("Unexpected WCT %u at %s(%d) - expected %d\n", \
(req)->in.wct, __FILE__, __LINE__, wcount)); \
smbsrv_send_error(req, NT_STATUS_DOS(ERRSRV, ERRerror)); \
return; \
More information about the samba-cvs
mailing list