summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-11-30 03:20:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:52 -0500
commitb9b59fa7984c4f800c177a235a984e05d59f1ef8 (patch)
tree3a8a66d1e136b8fc65d1d7a261473e9102389a26 /source4/smb_server
parent03d301ead5f702872b8cb948b8cd01b0fa0db5f7 (diff)
downloadsamba-b9b59fa7984c4f800c177a235a984e05d59f1ef8.tar.gz
samba-b9b59fa7984c4f800c177a235a984e05d59f1ef8.tar.bz2
samba-b9b59fa7984c4f800c177a235a984e05d59f1ef8.zip
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)
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb/receive.c6
-rw-r--r--source4/smb_server/smb2/receive.c2
2 files changed, 4 insertions, 4 deletions
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;
}