diff options
author | Stef Walter <stef@memberwebs.com> | 2010-06-16 18:26:03 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2010-06-16 18:26:03 +0000 |
commit | 9b67a8644c20fab0ed58a6c9e10bbde153ed6068 (patch) | |
tree | ac76a26281f3895702db0f247343febb305ac6b0 /tools | |
parent | f79b3f3226bbc95e8fed3adeed5d2523e26fcec5 (diff) |
Fix various build warnings.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/notify-dns-slaves.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; |