diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2015-01-08 00:30:09 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2015-01-08 00:30:09 +0000 |
commit | 020edf3cb03171d18806fc2d4c74ac5158914c05 (patch) | |
tree | 927d05f06ecee8ebebafaa41bd6224d534a357f1 /usr.sbin/ntpd/ntpd.c | |
parent | 200b730369f4e91a32d265c7ea83f53084bb0a74 (diff) |
sync log.c from smtpd.
Reduces the number of log.c snowflakes by a little, and gives ntpd a
variadic fatal() function to be used later.
ok deraadt@
Diffstat (limited to 'usr.sbin/ntpd/ntpd.c')
-rw-r--r-- | usr.sbin/ntpd/ntpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c index 519b0c6317d..4cb918bcae6 100644 --- a/usr.sbin/ntpd/ntpd.c +++ b/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.81 2015/01/04 01:24:43 bcook Exp $ */ +/* $OpenBSD: ntpd.c,v 1.82 2015/01/08 00:30:08 bcook Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -58,7 +58,6 @@ volatile sig_atomic_t quit = 0; volatile sig_atomic_t reconfig = 0; volatile sig_atomic_t sigchld = 0; struct imsgbuf *ibuf; -int debugsyslog = 0; int timeout = INFTIM; const char *showopt; @@ -127,6 +126,7 @@ main(int argc, char *argv[]) switch (ch) { case 'd': lconf.debug = 1; + log_verbose(1); break; case 'f': conffile = optarg; @@ -141,7 +141,7 @@ main(int argc, char *argv[]) lconf.settime = 0; break; case 'v': - debugsyslog = 1; + log_verbose(1); break; default: usage(); |