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 /usr.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 'usr.sbin')
-rw-r--r-- | usr.sbin/extattrctl/extattrctl.c | 4 | ||||
-rw-r--r-- | usr.sbin/lpr/lpd/lpd.c | 6 | ||||
-rw-r--r-- | usr.sbin/tokenadm/tokenadm.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/extattrctl/extattrctl.c b/usr.sbin/extattrctl/extattrctl.c index d3f464153d1..ec7aa291794 100644 --- a/usr.sbin/extattrctl/extattrctl.c +++ b/usr.sbin/extattrctl/extattrctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: extattrctl.c,v 1.4 2003/04/13 22:42:57 avsm Exp $ */ +/* $OpenBSD: extattrctl.c,v 1.5 2004/04/07 14:09:35 aaron Exp $ */ /*- * Copyright (c) 1999, 2000, 2001 Robert N. M. Watson * All rights reserved. @@ -84,7 +84,7 @@ initattr(int argc, char *argv[]) long loop, num_inodes; int ch, i, error, chunksize, overwrite = 0, flags; - while ((ch = getopt(argc, argv, "fp:r:w:")) != -1) + while ((ch = getopt(argc, argv, "fp:")) != -1) switch (ch) { case 'f': overwrite = 1; diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c index 658c18f437e..cefff07f5d1 100644 --- a/usr.sbin/lpr/lpd/lpd.c +++ b/usr.sbin/lpr/lpd/lpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpd.c,v 1.43 2003/11/08 19:17:29 jmc Exp $ */ +/* $OpenBSD: lpd.c,v 1.44 2004/04/07 14:09:35 aaron Exp $ */ /* $NetBSD: lpd.c,v 1.33 2002/01/21 14:42:29 wiz Exp $ */ /* @@ -41,7 +41,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95"; #else -static const char rcsid[] = "$OpenBSD: lpd.c,v 1.43 2003/11/08 19:17:29 jmc Exp $"; +static const char rcsid[] = "$OpenBSD: lpd.c,v 1.44 2004/04/07 14:09:35 aaron Exp $"; #endif #endif /* not lint */ @@ -167,7 +167,7 @@ main(int argc, char **argv) options = 0; gethostname(host, sizeof(host)); - while ((i = getopt(argc, argv, "b:cdln:rsw:W")) != -1) { + while ((i = getopt(argc, argv, "b:dln:rsw:W")) != -1) { switch (i) { case 'b': if (blist_addrs >= blist_size) { diff --git a/usr.sbin/tokenadm/tokenadm.c b/usr.sbin/tokenadm/tokenadm.c index 42e55626e70..0ca1851f021 100644 --- a/usr.sbin/tokenadm/tokenadm.c +++ b/usr.sbin/tokenadm/tokenadm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tokenadm.c,v 1.6 2002/09/06 19:12:36 deraadt Exp $ */ +/* $OpenBSD: tokenadm.c,v 1.7 2004/04/07 14:09:35 aaron Exp $ */ /*- * Copyright (c) 1995 Migration Associates Corp. All Rights Reserved @@ -102,7 +102,7 @@ main(int argc, char **argv) if (setrlimit(RLIMIT_CORE, &cds) < 0) syslog(LOG_ERR, "couldn't set core dump size to 0: %m"); - while ((c = getopt(argc, argv, "BDERT1bdem:ru")) != -1) + while ((c = getopt(argc, argv, "BDERT1dem:r")) != -1) switch (c) { case 'B': if (what != LIST) |