Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/acpitools/acpidump Add -s to getopt(3)-string.



details:   https://anonhg.NetBSD.org/src/rev/683c80398dc8
branches:  trunk
changeset: 340626:683c80398dc8
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Sep 20 17:45:25 2015 +0000

description:
Add -s to getopt(3)-string.

Noted missing by Henning Petersen in PR 50255.

While here, clean up usage.

diffstat:

 usr.sbin/acpitools/acpidump/acpidump.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r f665d3923073 -r 683c80398dc8 usr.sbin/acpitools/acpidump/acpidump.c
--- a/usr.sbin/acpitools/acpidump/acpidump.c    Sun Sep 20 16:57:13 2015 +0000
+++ b/usr.sbin/acpitools/acpidump/acpidump.c    Sun Sep 20 17:45:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpidump.c,v 1.5 2011/08/29 20:38:54 joerg Exp $ */
+/* $NetBSD: acpidump.c,v 1.6 2015/09/20 17:45:25 wiz Exp $ */
 
 /*-
  * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki%FreeBSD.org@localhost>
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: acpidump.c,v 1.5 2011/08/29 20:38:54 joerg Exp $");
+__RCSID("$NetBSD: acpidump.c,v 1.6 2015/09/20 17:45:25 wiz Exp $");
 
 
 #include <sys/param.h>
@@ -53,7 +53,7 @@
 {
        const char *progname = getprogname();
 
-       fprintf(stderr, "usage: %s [-c] [-d] [-s] [-t] [-h] [-v] "
+       fprintf(stderr, "usage: %s [-cdhstv] "
                        "[-f dsdt_input] [-o dsdt_output]\n", progname);
        fprintf(stderr, "To send ASL:\n\t%s -dt | gzip -c9 > foo.asl.gz\n",
            progname);
@@ -72,7 +72,7 @@
        if (argc < 2)
                usage();
 
-       while ((c = getopt(argc, argv, "cdhtvf:o:")) != -1) {
+       while ((c = getopt(argc, argv, "cdhtsvf:o:")) != -1) {
                switch (c) {
                case 'c':
                        cflag = 1;



Home | Main Index | Thread Index | Old Index