diff options
author | Tim Potter <tpot@samba.org> | 2003-11-05 18:28:29 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-11-05 18:28:29 +0000 |
commit | f59bd268945960ddd90fccf7cf7b077e1bdf41f2 (patch) | |
tree | cb87a6a1571685f796e4b0a2b499d80d23535a81 /source3/lib/util_sock.c | |
parent | 150fb8ea588d012a31837884d2843ad3040ce0c9 (diff) | |
download | samba-f59bd268945960ddd90fccf7cf7b077e1bdf41f2.tar.gz samba-f59bd268945960ddd90fccf7cf7b077e1bdf41f2.tar.bz2 samba-f59bd268945960ddd90fccf7cf7b077e1bdf41f2.zip |
Merge of 64-bit printf warning fixes.
(This used to be commit a6cc763333943bc6e360bb7e78cf9bfb1bc936e8)
Diffstat (limited to 'source3/lib/util_sock.c')
-rw-r--r-- | source3/lib/util_sock.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index eb19caa31b..b59d7aa7eb 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -184,8 +184,8 @@ ssize_t read_udp_socket(int fd,char *buf,size_t len) lastip = sock.sin_addr; lastport = ntohs(sock.sin_port); - DEBUG(10,("read_udp_socket: lastip %s lastport %d read: %d\n", - inet_ntoa(lastip), lastport, ret)); + DEBUG(10,("read_udp_socket: lastip %s lastport %d read: %lu\n", + inet_ntoa(lastip), lastport, (unsigned long)ret)); return(ret); } @@ -460,7 +460,7 @@ static ssize_t read_smb_length_return_keepalive(int fd,char *inbuf,unsigned int DEBUG(5,("Got keepalive packet\n")); } - DEBUG(10,("got smb length of %d\n",len)); + DEBUG(10,("got smb length of %lu\n",(unsigned long)len)); return(len); } @@ -487,7 +487,8 @@ ssize_t read_smb_length(int fd,char *inbuf,unsigned int timeout) break; } - DEBUG(10,("read_smb_length: got smb length of %d\n",len)); + DEBUG(10,("read_smb_length: got smb length of %lu\n", + (unsigned long)len)); return len; } @@ -529,7 +530,7 @@ BOOL receive_smb_raw(int fd,char *buffer, unsigned int timeout) */ if (len > (BUFFER_SIZE + LARGE_WRITEX_HDR_SIZE)) { - DEBUG(0,("Invalid packet length! (%d bytes).\n",len)); + DEBUG(0,("Invalid packet length! (%lu bytes).\n",(unsigned long)len)); if (len > BUFFER_SIZE + (SAFETY_MARGIN/2)) { /* |