summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2010-06-16 18:26:03 +0000
committerStef Walter <stef@memberwebs.com>2010-06-16 18:26:03 +0000
commit9b67a8644c20fab0ed58a6c9e10bbde153ed6068 (patch)
treeac76a26281f3895702db0f247343febb305ac6b0
parentf79b3f3226bbc95e8fed3adeed5d2523e26fcec5 (diff)
Fix various build warnings.
-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;