Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/bfa3d82dd3e5
branches:  trunk
changeset: 318077:bfa3d82dd3e5
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 c152471ea7a6 -r bfa3d82dd3e5 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