From b9b59fa7984c4f800c177a235a984e05d59f1ef8 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 30 Nov 2005 03:20:25 +0000 Subject: r11968: More warning fixes. We're on track to getting to double digits for the number of warnings generated now. (This used to be commit d479f2d7607adc698d71c5ba26932c72a26dcaab) --- source4/smb_server/smb/receive.c | 6 +++--- source4/smb_server/smb2/receive.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/smb_server') diff --git a/source4/smb_server/smb/receive.c b/source4/smb_server/smb/receive.c index a1f690a5fb..b77a166b9d 100644 --- a/source4/smb_server/smb/receive.c +++ b/source4/smb_server/smb/receive.c @@ -87,15 +87,15 @@ NTSTATUS smbsrv_recv_smb_request(void *private, DATA_BLOB blob) } if ((NBT_HDR_SIZE + MIN_SMB_SIZE) > blob.length) { - DEBUG(2,("Invalid SMB packet: length %d\n", blob.length)); + DEBUG(2,("Invalid SMB packet: length %ld\n", (long)blob.length)); smbsrv_terminate_connection(smb_conn, "Invalid SMB packet"); return NT_STATUS_OK; } /* Make sure this is an SMB packet */ if (IVAL(blob.data, NBT_HDR_SIZE) != SMB_MAGIC) { - DEBUG(2,("Non-SMB packet of length %d. Terminating connection\n", - blob.length)); + DEBUG(2,("Non-SMB packet of length %ld. Terminating connection\n", + (long)blob.length)); smbsrv_terminate_connection(smb_conn, "Non-SMB packet"); return NT_STATUS_OK; } diff --git a/source4/smb_server/smb2/receive.c b/source4/smb_server/smb2/receive.c index 87b480ee64..9afa10463f 100644 --- a/source4/smb_server/smb2/receive.c +++ b/source4/smb_server/smb2/receive.c @@ -192,7 +192,7 @@ NTSTATUS smbsrv_recv_smb2_request(void *private, DATA_BLOB blob) } if (blob.length < (NBT_HDR_SIZE + SMB2_MIN_SIZE)) { - DEBUG(2,("Invalid SMB2 packet length count %d\n", blob.length)); + DEBUG(2,("Invalid SMB2 packet length count %ld\n", (long)blob.length)); smbsrv_terminate_connection(smb_conn, "Invalid SMB2 packet"); return NT_STATUS_OK; } -- cgit