From 1b5c28a627fa7d5f185537c85a43c7629273a2d9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Sep 2006 09:49:34 +0000 Subject: 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 fe209e360e3857f39355335e4fa6a43b2db23038) --- source4/libcli/raw/request.h | 2 +- source4/smb_server/smb_server.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/libcli/raw/request.h b/source4/libcli/raw/request.h index fedebf4c8d..689a5281ce 100644 --- a/source4/libcli/raw/request.h +++ b/source4/libcli/raw/request.h @@ -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; diff --git a/source4/smb_server/smb_server.h b/source4/smb_server/smb_server.h index e0913db030..f2ff622b40 100644 --- a/source4/smb_server/smb_server.h +++ b/source4/smb_server/smb_server.h @@ -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; \ -- cgit