Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/traceroute6 warnx?/errx? audit (don't pass variable...
details: https://anonhg.NetBSD.org/src/rev/f4350f501d1c
branches: trunk
changeset: 494512:f4350f501d1c
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Jul 07 12:22:32 2000 +0000
description:
warnx?/errx? audit (don't pass variable alone). from openbsd.
diffstat:
usr.sbin/traceroute6/traceroute6.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (44 lines):
diff -r ecf2406ba6cf -r f4350f501d1c usr.sbin/traceroute6/traceroute6.c
--- a/usr.sbin/traceroute6/traceroute6.c Fri Jul 07 11:54:57 2000 +0000
+++ b/usr.sbin/traceroute6/traceroute6.c Fri Jul 07 12:22:32 2000 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: traceroute6.c,v 1.12 2000/06/30 18:58:42 itojun Exp $ */
-/* $KAME: traceroute6.c,v 1.30 2000/06/30 18:56:01 itojun Exp $ */
+/* $NetBSD: traceroute6.c,v 1.13 2000/07/07 12:22:32 itojun Exp $ */
+/* $KAME: traceroute6.c,v 1.32 2000/07/07 12:21:34 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -79,7 +79,7 @@
#else
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: traceroute6.c,v 1.12 2000/06/30 18:58:42 itojun Exp $");
+__RCSID("$NetBSD: traceroute6.c,v 1.13 2000/07/07 12:22:32 itojun Exp $");
#endif
#endif
@@ -604,9 +604,9 @@
* turned off.
*/
if (setpolicy(rcvsock, "in bypass") < 0)
- errx(1, ipsec_strerror());
+ errx(1, "%s", ipsec_strerror());
if (setpolicy(rcvsock, "out bypass") < 0)
- errx(1, ipsec_strerror());
+ errx(1, "%s", ipsec_strerror());
#else
{
int level = IPSEC_LEVEL_NONE;
@@ -678,9 +678,9 @@
* turned off.
*/
if (setpolicy(sndsock, "in bypass") < 0)
- errx(1, ipsec_strerror());
+ errx(1, "%s", ipsec_strerror());
if (setpolicy(sndsock, "out bypass") < 0)
- errx(1, ipsec_strerror());
+ errx(1, "%s", ipsec_strerror());
#else
{
int level = IPSEC_LEVEL_BYPASS;
Home |
Main Index |
Thread Index |
Old Index