1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r18211: wct is not a size, so don't use size_t

this should fix a pile of printf format warnings
(This used to be commit fe209e360e)
This commit is contained in:
Andrew Tridgell 2006-09-07 09:49:34 +00:00 committed by Gerald (Jerry) Carter
parent af1b64c92f
commit 1b5c28a627
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ struct request_buffer {
/* 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;

View File

@ -382,7 +382,7 @@ struct smbsrv_connection {
/* 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; \