diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2004-04-07 14:09:36 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2004-04-07 14:09:36 +0000 |
commit | eef066e143e1ba9826b36b7e5b48c9851784f7a2 (patch) | |
tree | 4e08e5352af123e6189b9ebc0e78237b9ac537cf /sbin | |
parent | d62260efbb210817cdf2745812dff843031c5840 (diff) |
Remove those option letters from the getopt string which do not have a case
handler below. millert@ ok
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/disklabel/disklabel.c | 6 | ||||
-rw-r--r-- | sbin/fsck_ext2fs/main.c | 6 | ||||
-rw-r--r-- | sbin/ping/ping.c | 6 | ||||
-rw-r--r-- | sbin/routed/main.c | 6 |
4 files changed, 12 insertions, 12 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 7f7c07c3e69..16446a3f99f 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.86 2003/12/20 09:29:27 jmc Exp $ */ +/* $OpenBSD: disklabel.c,v 1.87 2004/04/07 14:09:35 aaron Exp $ */ /* * Copyright (c) 1987, 1993 @@ -39,7 +39,7 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.86 2003/12/20 09:29:27 jmc Exp $"; +static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.87 2004/04/07 14:09:35 aaron Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -146,7 +146,7 @@ main(int argc, char *argv[]) char print_unit = 0; FILE *t; - while ((ch = getopt(argc, argv, "BEFf:NRWb:cdenp:rs:tvw")) != -1) + while ((ch = getopt(argc, argv, "BEf:NRWb:cdenp:rs:tvw")) != -1) switch (ch) { #if NUMBOOT > 0 case 'B': diff --git a/sbin/fsck_ext2fs/main.c b/sbin/fsck_ext2fs/main.c index 60c00a4b8cb..1e97d3ac3d5 100644 --- a/sbin/fsck_ext2fs/main.c +++ b/sbin/fsck_ext2fs/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.12 2003/07/29 18:38:35 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.13 2004/04/07 14:09:35 aaron Exp $ */ /* $NetBSD: main.c,v 1.1 1997/06/11 11:21:50 bouyer Exp $ */ /* @@ -44,7 +44,7 @@ static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/23/94"; #if 0 static char rcsid[] = "$NetBSD: main.c,v 1.1 1997/06/11 11:21:50 bouyer Exp $"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.12 2003/07/29 18:38:35 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.13 2004/04/07 14:09:35 aaron Exp $"; #endif #endif #endif /* not lint */ @@ -83,7 +83,7 @@ main(int argc, char *argv[]) sync(); skipclean = 1; - while ((ch = getopt(argc, argv, "b:c:dfm:npy")) != -1) { + while ((ch = getopt(argc, argv, "b:dfm:npy")) != -1) { switch (ch) { case 'b': skipclean = 0; diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index c42ff2eb8af..3f1b77cc675 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping.c,v 1.65 2004/03/21 20:00:55 markus Exp $ */ +/* $OpenBSD: ping.c,v 1.66 2004/04/07 14:09:35 aaron Exp $ */ /* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */ /* @@ -43,7 +43,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93"; #else -static const char rcsid[] = "$OpenBSD: ping.c,v 1.65 2004/03/21 20:00:55 markus Exp $"; +static const char rcsid[] = "$OpenBSD: ping.c,v 1.66 2004/04/07 14:09:35 aaron Exp $"; #endif #endif /* not lint */ @@ -211,7 +211,7 @@ main(int argc, char *argv[]) preload = 0; datap = &outpack[8 + sizeof(struct tvi)]; - while ((ch = getopt(argc, argv, "DI:LRS:c:dfh:i:l:np:qrs:T:t:vw:")) != -1) + while ((ch = getopt(argc, argv, "DI:LRS:c:dfi:l:np:qrs:T:t:vw:")) != -1) switch(ch) { case 'c': npackets = strtonum(optarg, 1, INT_MAX, diff --git a/sbin/routed/main.c b/sbin/routed/main.c index 9110a5f10a1..c241cf2d09f 100644 --- a/sbin/routed/main.c +++ b/sbin/routed/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.17 2004/03/11 08:39:48 otto Exp $ */ +/* $OpenBSD: main.c,v 1.18 2004/04/07 14:09:35 aaron Exp $ */ /* * Copyright (c) 1983, 1988, 1993 @@ -35,7 +35,7 @@ char copyright[] = #if !defined(lint) static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.17 2004/03/11 08:39:48 otto Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.18 2004/04/07 14:09:35 aaron Exp $"; #endif #include "defs.h" @@ -117,7 +117,7 @@ main(int argc, (void)gethostname(myname, sizeof(myname)); (void)gethost(myname, &myaddr); - while ((n = getopt(argc, argv, "sqdghmpAtT:F:P:")) != -1) { + while ((n = getopt(argc, argv, "sqdghmAtT:F:P:")) != -1) { switch (n) { case 's': supplier = 1; |