summaryrefslogtreecommitdiff
path: root/usr.sbin/apm
diff options
context:
space:
mode:
authorcube <cube@NetBSD.org>2005-01-23 20:55:57 +0000
committercube <cube@NetBSD.org>2005-01-23 20:55:57 +0000
commitc8f95d9a611411bcc96cc4ab43ac079bf4b2e448 (patch)
treee0af71da094dd8489cecfd38bd85467ee977a864 /usr.sbin/apm
parentab1460715bdf0e777b4195d609e25d8abd4b75dd (diff)
Add 'd' to usage, sort options in usage, sort options in getopt() call.
Diffstat (limited to 'usr.sbin/apm')
-rw-r--r--usr.sbin/apm/apm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c
index c4558a05161..9e6dc98744e 100644
--- a/usr.sbin/apm/apm.c
+++ b/usr.sbin/apm/apm.c
@@ -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 @@ void
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 @@ main(int argc, char *argv[])
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;