summaryrefslogtreecommitdiff
path: root/tools/notify-dns-slaves.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/notify-dns-slaves.c')
-rw-r--r--tools/notify-dns-slaves.c7
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;