summaryrefslogtreecommitdiffstats
path: root/eloop.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 /eloop.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 'eloop.c')
-rw-r--r--eloop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eloop.c b/eloop.c
index 7655f5a7..227ed4c7 100644
--- a/eloop.c
+++ b/eloop.c
@@ -26,16 +26,16 @@
*/
#include <sys/time.h>
+
#include <errno.h>
#include <limits.h>
#include <poll.h>
#include <stdarg.h>
#include <stdlib.h>
+#include <syslog.h>
#include "common.h"
#include "eloop.h"
-#include "logger.h"
-#include "net.h"
static struct timeval now = {0, 0};
@@ -305,7 +305,7 @@ start_eloop(void)
for (e = events; e; e = e->next)
nfds++;
if (msecs == -1 && nfds == 0) {
- logger(LOG_ERR, "nothing to do");
+ syslog(LOG_ERR, "nothing to do");
exit(EXIT_FAILURE);
}
if (nfds > fds_len) {
@@ -326,7 +326,7 @@ start_eloop(void)
get_monotonic(&now);
continue;
}
- logger(LOG_ERR, "poll: %m");
+ syslog(LOG_ERR, "poll: %m");
exit(EXIT_FAILURE);
}