Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ps kvm_geterr() already contains errno, use errx.



details:   https://anonhg.NetBSD.org/src/rev/39e55321c5ec
branches:  trunk
changeset: 361073:39e55321c5ec
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 11 18:52:29 2018 +0000

description:
kvm_geterr() already contains errno, use errx.

diffstat:

 bin/ps/ps.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f0c574655468 -r 39e55321c5ec bin/ps/ps.c
--- a/bin/ps/ps.c       Wed Apr 11 18:52:05 2018 +0000
+++ b/bin/ps/ps.c       Wed Apr 11 18:52:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ps.c,v 1.90 2018/04/11 18:52:05 christos Exp $ */
+/*     $NetBSD: ps.c,v 1.91 2018/04/11 18:52:29 christos Exp $ */
 
 /*
  * Copyright (c) 2000-2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
 #if 0
 static char sccsid[] = "@(#)ps.c       8.4 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: ps.c,v 1.90 2018/04/11 18:52:05 christos Exp $");
+__RCSID("$NetBSD: ps.c,v 1.91 2018/04/11 18:52:29 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -425,7 +425,7 @@
         * select procs
         */
        if (!(kinfo = getkinfo_kvm(kd, what, flag, &nentries)))
-               err(EXIT_FAILURE, "%s", kvm_geterr(kd));
+               errx(EXIT_FAILURE, "%s", kvm_geterr(kd));
        if (nentries == 0) {
                printheader();
                return 1;



Home | Main Index | Thread Index | Old Index