summaryrefslogtreecommitdiff
path: root/usr.sbin/identd
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-05-26 17:38:47 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-05-26 17:38:47 +0000
commit7fe1370923e547ed228b6ad68d6d1620d0d4b78a (patch)
tree6dcd7f9e43ceca2ab17fd791a132ed3d2433436f /usr.sbin/identd
parentac8cfe8e5acbcc02ad1ab44bdec0c9e3f4518516 (diff)
Sync the severity of the syslog_* functions shared between identd, slowcgi,
tftp-proxy and tftpd to the severity used in log.c style loggers. This also fixes an issue where syslog_err and syslog_errx logged with different severities. Sure deraadt@
Diffstat (limited to 'usr.sbin/identd')
-rw-r--r--usr.sbin/identd/identd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c
index f995f6a56a0..176e01f1bac 100644
--- a/usr.sbin/identd/identd.c
+++ b/usr.sbin/identd/identd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: identd.c,v 1.35 2017/04/18 03:54:27 deraadt Exp $ */
+/* $OpenBSD: identd.c,v 1.36 2017/05/26 17:38:46 florian Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
@@ -1078,7 +1078,7 @@ syslog_err(int ecode, const char *fmt, ...)
va_list ap;
va_start(ap, fmt);
- syslog_vstrerror(errno, LOG_EMERG, fmt, ap);
+ syslog_vstrerror(errno, LOG_CRIT, fmt, ap);
va_end(ap);
exit(ecode);
}
@@ -1089,7 +1089,7 @@ syslog_errx(int ecode, const char *fmt, ...)
va_list ap;
va_start(ap, fmt);
- vsyslog(LOG_WARNING, fmt, ap);
+ vsyslog(LOG_CRIT, fmt, ap);
va_end(ap);
exit(ecode);
}
@@ -1100,7 +1100,7 @@ syslog_warn(const char *fmt, ...)
va_list ap;
va_start(ap, fmt);
- syslog_vstrerror(errno, LOG_WARNING, fmt, ap);
+ syslog_vstrerror(errno, LOG_ERR, fmt, ap);
va_end(ap);
}
@@ -1110,7 +1110,7 @@ syslog_warnx(const char *fmt, ...)
va_list ap;
va_start(ap, fmt);
- vsyslog(LOG_WARNING, fmt, ap);
+ vsyslog(LOG_ERR, fmt, ap);
va_end(ap);
}