summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/plugin.c2
-rw-r--r--tools/notify-dns-slaves.c7
2 files changed, 4 insertions, 5 deletions
diff --git a/plugin/plugin.c b/plugin/plugin.c
index fb49085..05d9ec9 100644
--- a/plugin/plugin.c
+++ b/plugin/plugin.c
@@ -389,7 +389,7 @@ plugin_init (Slapi_PBlock *pb)
}
#ifdef _DEBUG
- log_trace ("%s initialized", PLUGIN_NAME);
+ log_plugin ("%s initialized", PLUGIN_NAME);
#endif
return 0;
}
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;