summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/parse.y
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2015-01-08 00:30:09 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2015-01-08 00:30:09 +0000
commit020edf3cb03171d18806fc2d4c74ac5158914c05 (patch)
tree927d05f06ecee8ebebafaa41bd6224d534a357f1 /usr.sbin/ntpd/parse.y
parent200b730369f4e91a32d265c7ea83f53084bb0a74 (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/parse.y')
-rw-r--r--usr.sbin/ntpd/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/parse.y b/usr.sbin/ntpd/parse.y
index 9608c3f686d..2d2a5095512 100644
--- a/usr.sbin/ntpd/parse.y
+++ b/usr.sbin/ntpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.55 2014/11/20 05:51:20 jsg Exp $ */
+/* $OpenBSD: parse.y,v 1.56 2015/01/08 00:30:08 bcook Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -348,7 +348,7 @@ yyerror(const char *fmt, ...)
if (vasprintf(&msg, fmt, ap) == -1)
fatalx("yyerror vasprintf");
va_end(ap);
- logit(LOG_CRIT, "%s:%d: %s", file->name, yylval.lineno, msg);
+ log_warnx("%s:%d: %s", file->name, yylval.lineno, msg);
free(msg);
return (0);
}