Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/tprof Use errx, there is no errno.



details:   https://anonhg.NetBSD.org/src/rev/fa23eead0992
branches:  trunk
changeset: 834026:fa23eead0992
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Jul 24 09:50:37 2018 +0000

description:
Use errx, there is no errno.

diffstat:

 usr.sbin/tprof/tprof.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5297afde6e4c -r fa23eead0992 usr.sbin/tprof/tprof.c
--- a/usr.sbin/tprof/tprof.c    Tue Jul 24 09:47:35 2018 +0000
+++ b/usr.sbin/tprof/tprof.c    Tue Jul 24 09:50:37 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tprof.c,v 1.12 2018/07/18 16:50:05 wiz Exp $   */
+/*     $NetBSD: tprof.c,v 1.13 2018/07/24 09:50:37 maxv Exp $  */
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: tprof.c,v 1.12 2018/07/18 16:50:05 wiz Exp $");
+__RCSID("$NetBSD: tprof.c,v 1.13 2018/07/24 09:50:37 maxv Exp $");
 #endif /* not lint */
 
 #include <sys/ioctl.h>
@@ -284,7 +284,7 @@
                    info.ti_version, TPROF_VERSION);
        }
        if (tprof_event_init(info.ti_ident) == -1) {
-               err(EXIT_FAILURE, "cpu not supported");
+               errx(EXIT_FAILURE, "cpu not supported");
        }
 
        if (argc == 0)



Home | Main Index | Thread Index | Old Index