Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/apm Add 'd' to usage, sort options in usage, sort o...



details:   https://anonhg.NetBSD.org/src/rev/b7419eb71e21
branches:  trunk
changeset: 573251:b7419eb71e21
user:      cube <cube%NetBSD.org@localhost>
date:      Sun Jan 23 20:55:57 2005 +0000

description:
Add 'd' to usage, sort options in usage, sort options in getopt() call.

diffstat:

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

diffs (27 lines):

diff -r ed4a12443045 -r b7419eb71e21 usr.sbin/apm/apm.c
--- a/usr.sbin/apm/apm.c        Sun Jan 23 20:05:26 2005 +0000
+++ b/usr.sbin/apm/apm.c        Sun Jan 23 20:55:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apm.c,v 1.15 2004/03/31 12:00:57 tron Exp $ */
+/*     $NetBSD: apm.c,v 1.16 2005/01/23 20:55:57 cube Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
 usage(void)
 {
 
-       fprintf(stderr,"usage: %s [-v] [-z | -S] [-slmba] [-f socket]\n",
+       fprintf(stderr,"usage: %s [-v] [-z | -S] [-abdlms] [-f socket]\n",
            getprogname());
        exit(1);
 }
@@ -164,7 +164,7 @@
 
        doac = dobstate = domin = dopct = dostatus = nodaemon =
            verbose = FALSE;
-       while ((ch = getopt(argc, argv, "lmbvadsSzf:")) != -1)
+       while ((ch = getopt(argc, argv, "Sabdf:lmsvz")) != -1)
                switch (ch) {
                case 'v':
                        verbose = TRUE;



Home | Main Index | Thread Index | Old Index