Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/autofs add more __dead/EXIT_FAILURE
details: https://anonhg.NetBSD.org/src/rev/7532fbf28303
branches: trunk
changeset: 358675:7532fbf28303
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 13 12:36:35 2018 +0000
description:
add more __dead/EXIT_FAILURE
diffstat:
usr.sbin/autofs/log.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (53 lines):
diff -r 2a0c0446fd2d -r 7532fbf28303 usr.sbin/autofs/log.c
--- a/usr.sbin/autofs/log.c Sat Jan 13 12:20:49 2018 +0000
+++ b/usr.sbin/autofs/log.c Sat Jan 13 12:36:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: log.c,v 1.2 2018/01/12 17:54:36 christos Exp $ */
+/* $NetBSD: log.c,v 1.3 2018/01/13 12:36:35 christos Exp $ */
/*-
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: log.c,v 1.2 2018/01/12 17:54:36 christos Exp $");
+__RCSID("$NetBSD: log.c,v 1.3 2018/01/13 12:36:35 christos Exp $");
#include <errno.h>
#include <stdarg.h>
@@ -101,14 +101,14 @@
if (ret < 0) {
fprintf(stderr, "%s: snprintf failed", getprogname());
syslog(LOG_CRIT, "snprintf failed");
- exit(1);
+ exit(EXIT_FAILURE);
}
ret = strnvis(msgbuf_strvised, sizeof(msgbuf_strvised), msgbuf, VIS_NL);
if (ret < 0) {
fprintf(stderr, "%s: strnvis failed", getprogname());
syslog(LOG_CRIT, "strnvis failed");
- exit(1);
+ exit(EXIT_FAILURE);
}
if (log_errno == -1) {
@@ -150,7 +150,7 @@
}
}
-void
+__dead void
log_err(int eval, const char *fmt, ...)
{
va_list ap;
@@ -162,7 +162,7 @@
exit(eval);
}
-void
+__dead void
log_errx(int eval, const char *fmt, ...)
{
va_list ap;
Home |
Main Index |
Thread Index |
Old Index