Source-Changes-HG archive

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

[src/netbsd-7]: src/usr.sbin/cpuctl Pull up following revision(s) (requested ...



details:   https://anonhg.NetBSD.org/src/rev/87be686ad52e
branches:  netbsd-7
changeset: 798727:87be686ad52e
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Dec 21 19:28:38 2014 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #336):
        usr.sbin/cpuctl/cpuctl.c: revision 1.25
Fix a bug that an unknown command is printed as "(null)".
Reported by Fredrik Pettai.

diffstat:

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

diffs (27 lines):

diff -r 69f6e107ca4b -r 87be686ad52e usr.sbin/cpuctl/cpuctl.c
--- a/usr.sbin/cpuctl/cpuctl.c  Sun Dec 21 19:27:11 2014 +0000
+++ b/usr.sbin/cpuctl/cpuctl.c  Sun Dec 21 19:28:38 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpuctl.c,v 1.23 2013/12/23 12:35:33 msaitoh Exp $      */
+/*     $NetBSD: cpuctl.c,v 1.23.4.1 2014/12/21 19:28:38 snj Exp $      */
 
 /*-
  * Copyright (c) 2007, 2008, 2009, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #ifndef lint
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: cpuctl.c,v 1.23 2013/12/23 12:35:33 msaitoh Exp $");
+__RCSID("$NetBSD: cpuctl.c,v 1.23.4.1 2014/12/21 19:28:38 snj Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -119,7 +119,7 @@
        }
 
        if (ct->label == NULL)
-               errx(EXIT_FAILURE, "unknown command ``%s''", argv[optind]);
+               errx(EXIT_FAILURE, "unknown command ``%s''", argv[0]);
 
        close(fd);
        exit(EXIT_SUCCESS);



Home | Main Index | Thread Index | Old Index