diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-09-09 10:05:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:18:04 -0500 |
commit | 30ee8beb9316a99e8a49993306252591106cb349 (patch) | |
tree | a00d384bb7e1e9c09a800f4e3de00b2c9450e17b /source4/smb_server | |
parent | 85e24e54d29ca8a08ad833831052e41a0bb257b6 (diff) | |
download | samba-30ee8beb9316a99e8a49993306252591106cb349.tar.gz samba-30ee8beb9316a99e8a49993306252591106cb349.tar.bz2 samba-30ee8beb9316a99e8a49993306252591106cb349.zip |
r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").
This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84efff735bb0ca941ac4b755ce2b0591667)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/smb/receive.c | 3 | ||||
-rw-r--r-- | source4/smb_server/smb2/smb2_server.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/source4/smb_server/smb/receive.c b/source4/smb_server/smb/receive.c index 6fce5dc7c0..fd80224787 100644 --- a/source4/smb_server/smb/receive.c +++ b/source4/smb_server/smb/receive.c @@ -142,7 +142,8 @@ NTSTATUS smbsrv_recv_smb_request(void *private, DATA_BLOB blob) } if (NBT_HDR_SIZE + MIN_SMB_SIZE + 2*req->in.wct + req->in.data_size > req->in.size) { - DEBUG(2,("Invalid SMB buffer length count %d\n", req->in.data_size)); + DEBUG(2,("Invalid SMB buffer length count %d\n", + (int)req->in.data_size)); smbsrv_terminate_connection(req->smb_conn, "Invalid SMB packet"); return NT_STATUS_OK; } diff --git a/source4/smb_server/smb2/smb2_server.h b/source4/smb_server/smb2/smb2_server.h index b58bf5511a..353300681f 100644 --- a/source4/smb_server/smb2/smb2_server.h +++ b/source4/smb_server/smb2/smb2_server.h @@ -71,13 +71,13 @@ struct smbsrv_request; uint16_t want_size = ((dynamic)?(size)+1:(size)); \ if (is_size < (size)) { \ DEBUG(0,("%s: buffer too small 0x%x. Expected 0x%x\n", \ - __location__, is_size, want_size)); \ + __location__, (unsigned)is_size, (unsigned)want_size)); \ smb2srv_send_error(req, NT_STATUS_FOOBAR); \ return; \ }\ if (field_size != want_size) { \ DEBUG(0,("%s: unexpected fixed body size 0x%x. Expected 0x%x\n", \ - __location__, field_size, want_size)); \ + __location__, (unsigned)field_size, (unsigned)want_size)); \ smb2srv_send_error(req, NT_STATUS_FOOBAR); \ return; \ } \ |