Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/netstat Use errx() to display kvm_openfiles error me...
details: https://anonhg.NetBSD.org/src/rev/b6ee7405d16f
branches: trunk
changeset: 767375:b6ee7405d16f
user: njoly <njoly%NetBSD.org@localhost>
date: Sun Jul 17 10:22:07 2011 +0000
description:
Use errx() to display kvm_openfiles error message, the provided buffer
already has it.
diffstat:
usr.bin/netstat/main.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r aa669a300efb -r b6ee7405d16f usr.bin/netstat/main.c
--- a/usr.bin/netstat/main.c Sun Jul 17 04:30:56 2011 +0000
+++ b/usr.bin/netstat/main.c Sun Jul 17 10:22:07 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.79 2011/05/04 01:13:35 dyoung Exp $ */
+/* $NetBSD: main.c,v 1.80 2011/07/17 10:22:07 njoly Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94";
#else
-__RCSID("$NetBSD: main.c,v 1.79 2011/05/04 01:13:35 dyoung Exp $");
+__RCSID("$NetBSD: main.c,v 1.80 2011/07/17 10:22:07 njoly Exp $");
#endif
#endif /* not lint */
@@ -363,7 +363,7 @@
if (kvmd != NULL)
return kvmd;
if ((kvmd = prepare_kvmd(nlistf, memf, buf)) == NULL)
- err(1, "kvm error: %s", buf);
+ errx(1, "kvm error: %s", buf);
return kvmd;
}
@@ -423,7 +423,7 @@
if (!use_sysctl) {
if (kvmd == NULL)
- err(1, "kvm error: %s", buf);
+ errx(1, "kvm error: %s", buf);
if (kvm_nlist(kvmd, nl) < 0 || nl[0].n_type == 0) {
if (nf)
errx(1, "%s: no namelist", nf);
Home |
Main Index |
Thread Index |
Old Index