From 9b67a8644c20fab0ed58a6c9e10bbde153ed6068 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 16 Jun 2010 18:26:03 +0000 Subject: Fix various build warnings. --- tools/notify-dns-slaves.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/notify-dns-slaves.c b/tools/notify-dns-slaves.c index 01f97f8..7a334e9 100644 --- a/tools/notify-dns-slaves.c +++ b/tools/notify-dns-slaves.c @@ -309,7 +309,8 @@ socket_callback (int fd, int type, void *arg) ssize_t num; SANY_LEN (sany) = sizeof (sany); - num = recvfrom (fd, packet, sizeof (packet), 0, &SANY_ADDR (sany), &SANY_LEN (sany)); + num = recvfrom (fd, packet, sizeof (packet), 0, &SANY_ADDR (sany), + (socklen_t*)(&SANY_LEN (sany))); if (num < 0) { warning ("couldn't receive packet"); return; @@ -750,10 +751,8 @@ stdin_callback (int fd, int type, void *arg) line = stdin_buffer + LINE_LENGTH; } - if (!line) /* Wait for more data */ { -fprintf (stderr, "waiting for more data %d\n", stdin_offset); + if (!line) /* Wait for more data */ break; -} *line = 0; num = (line + 1) - stdin_buffer; -- cgit v1.2.3