summaryrefslogtreecommitdiffstats
path: root/ipv4ll.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-05 18:24:34 +0000
committerRoy Marples <roy@marples.name>2008-09-05 18:24:34 +0000
commit765fbf7db0669762f6fe4f829f37c6b10de77fe4 (patch)
tree56290e5630958b75f89dea657836284eaeb25ec5 /ipv4ll.c
parentf25f3fb214d3106bb12fdaa0b67eeabd3dadbb0a (diff)
downloaddhcpcd-765fbf7db0669762f6fe4f829f37c6b10de77fe4.tar.xz
Remove logger and exclusively uses syslog instead. This saves almost 2K on NetBSD/amd64 from before changing strerror to %m.
Diffstat (limited to 'ipv4ll.c')
-rw-r--r--ipv4ll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipv4ll.c b/ipv4ll.c
index c7b0586a..0ae91005 100644
--- a/ipv4ll.c
+++ b/ipv4ll.c
@@ -28,6 +28,7 @@
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
+#include <syslog.h>
#include <unistd.h>
#include "arp.h"
@@ -36,7 +37,6 @@
#include "eloop.h"
#include "if-options.h"
#include "ipv4ll.h"
-#include "logger.h"
#include "net.h"
static struct dhcp_message*
@@ -87,7 +87,7 @@ start_ipv4ll(void *arg)
}
}
- logger(LOG_INFO, "%s: probing for an IPv4LL address", iface->name);
+ syslog(LOG_INFO, "%s: probing for an IPv4LL address", iface->name);
delete_timeout(NULL, iface);
iface->state->state = DHS_PROBING;
free(iface->state->offer);
@@ -118,7 +118,7 @@ handle_ipv4ll_failure(void *arg)
close_sockets(iface);
if (++iface->state->conflicts > MAX_CONFLICTS) {
- logger(LOG_ERR, "%s: failed to acquire an IPv4LL address",
+ syslog(LOG_ERR, "%s: failed to acquire an IPv4LL address",
iface->name);
iface->state->interval = RATE_LIMIT_INTERVAL / 2;
start_discover(iface);