Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/identd Fix varargs.
details: https://anonhg.NetBSD.org/src/rev/4fd155c4ab46
branches: trunk
changeset: 819576:4fd155c4ab46
user: christos <christos%NetBSD.org@localhost>
date: Sat Dec 10 22:08:13 2016 +0000
description:
Fix varargs.
diffstat:
libexec/identd/identd.c | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r dcd031a2fc20 -r 4fd155c4ab46 libexec/identd/identd.c
--- a/libexec/identd/identd.c Sat Dec 10 21:33:53 2016 +0000
+++ b/libexec/identd/identd.c Sat Dec 10 22:08:13 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: identd.c,v 1.35 2016/12/10 05:43:11 christos Exp $ */
+/* $NetBSD: identd.c,v 1.36 2016/12/10 22:08:13 christos Exp $ */
/*
* identd.c - TCP/IP Ident protocol server.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: identd.c,v 1.35 2016/12/10 05:43:11 christos Exp $");
+__RCSID("$NetBSD: identd.c,v 1.36 2016/12/10 22:08:13 christos Exp $");
#include <sys/param.h>
#include <sys/socket.h>
@@ -1050,12 +1050,17 @@
{
va_list ap;
- va_start(ap, message);
- if (bflag)
+ if (bflag) {
+ va_start(ap, message);
vwarnx(message, ap);
- if (lflag)
+ va_end(ap);
+ }
+
+ if (lflag) {
+ va_start(ap, message);
vsyslog(LOG_ERR, message, ap);
- va_end(ap);
+ va_end(ap);
+ }
exit(EXIT_FAILURE);
}
Home |
Main Index |
Thread Index |
Old Index