Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/ping do not pass NULL to errx().
details: https://anonhg.NetBSD.org/src/rev/61658818cb99
branches: trunk
changeset: 474370:61658818cb99
user: itojun <itojun%NetBSD.org@localhost>
date: Sun Jul 04 15:24:35 1999 +0000
description:
do not pass NULL to errx().
From: Chris Joness <cjones%rupert.honors.montana.edu@localhost>
diffstat:
sbin/ping/ping.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a712e66b3f8f -r 61658818cb99 sbin/ping/ping.c
--- a/sbin/ping/ping.c Sun Jul 04 14:45:54 1999 +0000
+++ b/sbin/ping/ping.c Sun Jul 04 15:24:35 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ping.c,v 1.52 1999/07/04 13:27:03 itojun Exp $ */
+/* $NetBSD: ping.c,v 1.53 1999/07/04 15:24:35 itojun Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -62,7 +62,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ping.c,v 1.52 1999/07/04 13:27:03 itojun Exp $");
+__RCSID("$NetBSD: ping.c,v 1.53 1999/07/04 15:24:35 itojun Exp $");
#endif
#include <stdio.h>
@@ -546,7 +546,7 @@
if ((len = ipsec_set_policy(buf, len, policy)) < 0)
errx(1, ipsec_strerror());
if (setsockopt(s, IPPROTO_IP, IP_IPSEC_POLICY, buf, len) < 0)
- err(1, NULL);
+ err(1, "ipsec policy cannot be configured");
free(buf);
}
if ((len = ipsec_get_policylen("bypass")) < 0)
Home |
Main Index |
Thread Index |
Old Index