diff options
| author | Roy Marples <roy@marples.name> | 2008-09-05 18:24:34 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-09-05 18:24:34 +0000 |
| commit | 765fbf7db0669762f6fe4f829f37c6b10de77fe4 (patch) | |
| tree | 56290e5630958b75f89dea657836284eaeb25ec5 /eloop.c | |
| parent | f25f3fb214d3106bb12fdaa0b67eeabd3dadbb0a (diff) | |
| download | dhcpcd-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |
