summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-11-06 22:11:08 +0000
committerTim Potter <tpot@samba.org>2003-11-06 22:11:08 +0000
commit9f154119e8788e9c3525b0a61c64326abd35bdf6 (patch)
tree414bdc61c7c31ec78380466cab989a1c2b814bd3 /source3/nsswitch
parent75b246906323a9c6dba6c73041882d4ddebe7577 (diff)
downloadsamba-9f154119e8788e9c3525b0a61c64326abd35bdf6.tar.gz
samba-9f154119e8788e9c3525b0a61c64326abd35bdf6.tar.bz2
samba-9f154119e8788e9c3525b0a61c64326abd35bdf6.zip
Final round of printf warnings fixes for the moment.
(This used to be commit 0519a7022b4979c0e8ddd4907f4b858a59299c06)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index 4f161604b5..4b47ac13a2 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -452,7 +452,7 @@ void winbind_client_read(struct winbindd_cli_state *state)
(char *)&state->request,
sizeof(state->request) - state->read_buf_len);
- DEBUG(10,("client_read: read %d bytes. Need %d more for a full request.\n", n, sizeof(state->request) - n - state->read_buf_len ));
+ DEBUG(10,("client_read: read %d bytes. Need %ld more for a full request.\n", n, (unsigned long)(sizeof(state->request) - n - state->read_buf_len) ));
/* Read failed, kill client */
@@ -719,8 +719,8 @@ static void process_loop(void)
if (state->read_buf_len >= sizeof(uint32)
&& *(uint32 *) &state->request != sizeof(state->request)) {
- DEBUG(0,("process_loop: Invalid request size from pid %lu: %d bytes sent, should be %d\n",
- (unsigned long)state->request.pid, *(uint32 *) &state->request, sizeof(state->request)));
+ DEBUG(0,("process_loop: Invalid request size from pid %lu: %d bytes sent, should be %ld\n",
+ (unsigned long)state->request.pid, *(uint32 *) &state->request, (unsigned long)sizeof(state->request)));
remove_client(state);
break;