diff options
author | Rainer Giedat <rainer@cvs.openbsd.org> | 2008-04-21 20:40:56 +0000 |
---|---|---|
committer | Rainer Giedat <rainer@cvs.openbsd.org> | 2008-04-21 20:40:56 +0000 |
commit | 2eb896a3c2545b2c1f068c4a4ea865cba56418a4 (patch) | |
tree | b4c4b2186f745d4ab97c4812b626304985b68b3a /usr.sbin/rtadvd/dump.c | |
parent | e06955861e1dc82e1d1c55fa4694375ae703ede6 (diff) |
Clean up logging by introducing the logging API used in
other daemons and clean up the command line options.
For details, see rtadvd(8).
ok bluhm@, pyr@
Diffstat (limited to 'usr.sbin/rtadvd/dump.c')
-rw-r--r-- | usr.sbin/rtadvd/dump.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/rtadvd/dump.c b/usr.sbin/rtadvd/dump.c index 401e97fc688..d6263f79935 100644 --- a/usr.sbin/rtadvd/dump.c +++ b/usr.sbin/rtadvd/dump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dump.c,v 1.6 2002/06/10 19:57:35 espie Exp $ */ +/* $OpenBSD: dump.c,v 1.7 2008/04/21 20:40:55 rainer Exp $ */ /* $KAME: dump.c,v 1.27 2002/05/29 14:23:55 itojun Exp $ */ /* @@ -47,7 +47,6 @@ #include <time.h> #include <stdio.h> #include <stdarg.h> -#include <syslog.h> #include <string.h> #include <errno.h> #include <netdb.h> @@ -56,6 +55,7 @@ #include "timer.h" #include "if.h" #include "dump.h" +#include "log.h" static FILE *fp; @@ -207,8 +207,7 @@ rtadvd_dump_file(dumpfile) char *dumpfile; { if ((fp = fopen(dumpfile, "w")) == NULL) { - syslog(LOG_WARNING, "<%s> open a dump file(%s)", - __func__, dumpfile); + log_warn("open a dump file(%s)", dumpfile); return; } |