diff options
author | 1996-08-02 12:40:48 +0000 | |
---|---|---|
committer | 1996-08-02 12:40:48 +0000 | |
commit | 287bceeed3b19f524b46f13488e277fbdfc91803 (patch) | |
tree | cfe939b82580efe03890893ba1a3e56c553e1990 | |
parent | more robust deliting, and handle negative timestamps; from freebsd (diff) | |
download | wireguard-openbsd-287bceeed3b19f524b46f13488e277fbdfc91803.tar.xz wireguard-openbsd-287bceeed3b19f524b46f13488e277fbdfc91803.zip |
zap getopt() case of -?, come on, it is the default!
-rw-r--r-- | bin/cat/cat.c | 5 | ||||
-rw-r--r-- | bin/chmod/chmod.c | 5 | ||||
-rw-r--r-- | bin/cp/cp.c | 5 | ||||
-rw-r--r-- | bin/csh/printf.c | 5 | ||||
-rw-r--r-- | bin/df/df.c | 5 | ||||
-rw-r--r-- | bin/domainname/domainname.c | 5 | ||||
-rw-r--r-- | bin/hostname/hostname.c | 5 | ||||
-rw-r--r-- | bin/ln/ln.c | 5 | ||||
-rw-r--r-- | bin/ls/ls.c | 5 | ||||
-rw-r--r-- | bin/mkdir/mkdir.c | 5 | ||||
-rw-r--r-- | bin/mt/mt.c | 5 | ||||
-rw-r--r-- | bin/mv/mv.c | 5 | ||||
-rw-r--r-- | bin/pax/options.c | 5 | ||||
-rw-r--r-- | bin/ps/ps.c | 5 | ||||
-rw-r--r-- | bin/pwd/pwd.c | 5 | ||||
-rw-r--r-- | bin/rcp/rcp.c | 3 | ||||
-rw-r--r-- | bin/rm/rm.c | 5 | ||||
-rw-r--r-- | bin/rmail/rmail.c | 5 | ||||
-rw-r--r-- | bin/rmdir/rmdir.c | 5 | ||||
-rw-r--r-- | bin/sh/histedit.c | 5 | ||||
-rw-r--r-- | bin/sleep/sleep.c | 5 | ||||
-rw-r--r-- | bin/stty/stty.c | 5 |
22 files changed, 43 insertions, 65 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c index f677785ec7d..d503c61cab9 100644 --- a/bin/cat/cat.c +++ b/bin/cat/cat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cat.c,v 1.2 1996/06/23 14:19:02 deraadt Exp $ */ +/* $OpenBSD: cat.c,v 1.3 1996/08/02 12:40:48 deraadt Exp $ */ /* $NetBSD: cat.c,v 1.11 1995/09/07 06:12:54 jtc Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95"; #else -static char rcsid[] = "$OpenBSD: cat.c,v 1.2 1996/06/23 14:19:02 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: cat.c,v 1.3 1996/08/02 12:40:48 deraadt Exp $"; #endif #endif /* not lint */ @@ -107,7 +107,6 @@ main(argc, argv) vflag = 1; break; default: - case '?': (void)fprintf(stderr, "usage: cat [-benstuv] [-] [file ...]\n"); exit(1); diff --git a/bin/chmod/chmod.c b/bin/chmod/chmod.c index 620dade7597..e35f3ce5cbd 100644 --- a/bin/chmod/chmod.c +++ b/bin/chmod/chmod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: chmod.c,v 1.2 1996/06/23 14:19:07 deraadt Exp $ */ +/* $OpenBSD: chmod.c,v 1.3 1996/08/02 12:40:50 deraadt Exp $ */ /* $NetBSD: chmod.c,v 1.12 1995/03/21 09:02:09 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94"; #else -static char rcsid[] = "$OpenBSD: chmod.c,v 1.2 1996/06/23 14:19:07 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: chmod.c,v 1.3 1996/08/02 12:40:50 deraadt Exp $"; #endif #endif /* not lint */ @@ -119,7 +119,6 @@ main(argc, argv) argv[optind - 1][2] == '\0') --optind; goto done; - case '?': default: usage(); } diff --git a/bin/cp/cp.c b/bin/cp/cp.c index 86d2657fd43..e4d9df97d16 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cp.c,v 1.2 1996/06/23 14:19:09 deraadt Exp $ */ +/* $OpenBSD: cp.c,v 1.3 1996/08/02 12:40:51 deraadt Exp $ */ /* $NetBSD: cp.c,v 1.14 1995/09/07 06:14:51 jtc Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95"; #else -static char rcsid[] = "$OpenBSD: cp.c,v 1.2 1996/06/23 14:19:09 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: cp.c,v 1.3 1996/08/02 12:40:51 deraadt Exp $"; #endif #endif /* not lint */ @@ -139,7 +139,6 @@ main(argc, argv) case 'r': rflag = 1; break; - case '?': default: usage(); break; diff --git a/bin/csh/printf.c b/bin/csh/printf.c index fdcd5b3c50d..80a4871b472 100644 --- a/bin/csh/printf.c +++ b/bin/csh/printf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printf.c,v 1.2 1996/06/23 14:19:27 deraadt Exp $ */ +/* $OpenBSD: printf.c,v 1.3 1996/08/02 12:40:52 deraadt Exp $ */ /* $NetBSD: printf.c,v 1.6 1995/03/21 09:03:15 cgd Exp $ */ /* @@ -46,7 +46,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)printf.c 8.1 (Berkeley) 7/20/93"; #else -static char rcsid[] = "$OpenBSD: printf.c,v 1.2 1996/06/23 14:19:27 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: printf.c,v 1.3 1996/08/02 12:40:52 deraadt Exp $"; #endif #endif /* not lint */ @@ -117,7 +117,6 @@ main(argc, argv) while ((ch = getopt(argc, argv, "")) != EOF) switch (ch) { - case '?': default: usage(); return (1); diff --git a/bin/df/df.c b/bin/df/df.c index 0a8aae6ecbe..4b6795cfaa5 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -1,4 +1,4 @@ -/* $OpenBSD: df.c,v 1.3 1996/06/23 14:19:51 deraadt Exp $ */ +/* $OpenBSD: df.c,v 1.4 1996/08/02 12:40:53 deraadt Exp $ */ /* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */ /* @@ -49,7 +49,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: df.c,v 1.3 1996/06/23 14:19:51 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: df.c,v 1.4 1996/08/02 12:40:53 deraadt Exp $"; #endif #endif /* not lint */ @@ -108,7 +108,6 @@ main(argc, argv) errx(1, "only one -t option may be specified."); maketypelist(optarg); break; - case '?': default: usage(); } diff --git a/bin/domainname/domainname.c b/bin/domainname/domainname.c index 6c83a779c16..633db145d59 100644 --- a/bin/domainname/domainname.c +++ b/bin/domainname/domainname.c @@ -1,4 +1,4 @@ -/* $OpenBSD: domainname.c,v 1.2 1996/06/23 14:19:54 deraadt Exp $ */ +/* $OpenBSD: domainname.c,v 1.3 1996/08/02 12:40:54 deraadt Exp $ */ /* $NetBSD: domainname.c,v 1.7 1995/03/21 09:04:22 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: domainname.c,v 1.2 1996/06/23 14:19:54 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: domainname.c,v 1.3 1996/08/02 12:40:54 deraadt Exp $"; #endif #endif /* not lint */ @@ -68,7 +68,6 @@ main(argc, argv) while ((ch = getopt(argc, argv, "")) != -1) switch (ch) { - case '?': default: usage(); } diff --git a/bin/hostname/hostname.c b/bin/hostname/hostname.c index 51f930abd57..85ad5cfae8b 100644 --- a/bin/hostname/hostname.c +++ b/bin/hostname/hostname.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hostname.c,v 1.2 1996/06/23 14:20:12 deraadt Exp $ */ +/* $OpenBSD: hostname.c,v 1.3 1996/08/02 12:40:55 deraadt Exp $ */ /* $NetBSD: hostname.c,v 1.10 1995/09/07 06:28:40 jtc Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)hostname.c 8.2 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$OpenBSD: hostname.c,v 1.2 1996/06/23 14:20:12 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: hostname.c,v 1.3 1996/08/02 12:40:55 deraadt Exp $"; #endif #endif /* not lint */ @@ -72,7 +72,6 @@ main(argc, argv) case 's': sflag = 1; break; - case '?': default: usage(); } diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 0071e5d7fb0..e941a8359d2 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ln.c,v 1.2 1996/06/23 14:20:16 deraadt Exp $ */ +/* $OpenBSD: ln.c,v 1.3 1996/08/02 12:40:56 deraadt Exp $ */ /* $NetBSD: ln.c,v 1.10 1995/03/21 09:06:10 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ln.c 8.2 (Berkeley) 3/31/94"; #else -static char rcsid[] = "$OpenBSD: ln.c,v 1.2 1996/06/23 14:20:16 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ln.c,v 1.3 1996/08/02 12:40:56 deraadt Exp $"; #endif #endif /* not lint */ @@ -87,7 +87,6 @@ main(argc, argv) case 's': sflag = 1; break; - case '?': default: usage(); } diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 215c2d8ea9f..0f872a9db27 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ls.c,v 1.3 1996/06/23 14:20:19 deraadt Exp $ */ +/* $OpenBSD: ls.c,v 1.4 1996/08/02 12:40:57 deraadt Exp $ */ /* $NetBSD: ls.c,v 1.16 1996/02/14 05:58:53 jtc Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ls.c 8.7 (Berkeley) 8/5/94"; #else -static char rcsid[] = "$OpenBSD: ls.c,v 1.3 1996/06/23 14:20:19 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ls.c,v 1.4 1996/08/02 12:40:57 deraadt Exp $"; #endif #endif /* not lint */ @@ -218,7 +218,6 @@ main(argc, argv) f_whiteout = 1; break; default: - case '?': usage(); } } diff --git a/bin/mkdir/mkdir.c b/bin/mkdir/mkdir.c index c4a2d4179f7..726b1896907 100644 --- a/bin/mkdir/mkdir.c +++ b/bin/mkdir/mkdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkdir.c,v 1.2 1996/06/23 14:20:24 deraadt Exp $ */ +/* $OpenBSD: mkdir.c,v 1.3 1996/08/02 12:40:58 deraadt Exp $ */ /* $NetBSD: mkdir.c,v 1.14 1995/06/25 21:59:21 mycroft Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mkdir.c 8.2 (Berkeley) 1/25/94"; #else -static char rcsid[] = "$OpenBSD: mkdir.c,v 1.2 1996/06/23 14:20:24 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mkdir.c,v 1.3 1996/08/02 12:40:58 deraadt Exp $"; #endif #endif /* not lint */ @@ -93,7 +93,6 @@ main(argc, argv) errx(1, "invalid file mode: %s", optarg); mode = getmode(set, S_IRWXU | S_IRWXG | S_IRWXO); break; - case '?': default: usage(); } diff --git a/bin/mt/mt.c b/bin/mt/mt.c index 28f47f0e1cc..0f9eb6156a8 100644 --- a/bin/mt/mt.c +++ b/bin/mt/mt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mt.c,v 1.10 1996/06/17 07:54:38 downsj Exp $ */ +/* $OpenBSD: mt.c,v 1.11 1996/08/02 12:40:59 deraadt Exp $ */ /* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mt.c 8.2 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: mt.c,v 1.10 1996/06/17 07:54:38 downsj Exp $"; +static char rcsid[] = "$OpenBSD: mt.c,v 1.11 1996/08/02 12:40:59 deraadt Exp $"; #endif #endif /* not lint */ @@ -140,7 +140,6 @@ main(argc, argv) case 't': tape = optarg; break; - case '?': default: usage(); } diff --git a/bin/mv/mv.c b/bin/mv/mv.c index 4f77fd2c37b..8ab946480e3 100644 --- a/bin/mv/mv.c +++ b/bin/mv/mv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mv.c,v 1.3 1996/07/30 12:26:46 deraadt Exp $ */ +/* $OpenBSD: mv.c,v 1.4 1996/08/02 12:41:00 deraadt Exp $ */ /* $NetBSD: mv.c,v 1.9 1995/03/21 09:06:52 cgd Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: mv.c,v 1.3 1996/07/30 12:26:46 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mv.c,v 1.4 1996/08/02 12:41:00 deraadt Exp $"; #endif #endif /* not lint */ @@ -95,7 +95,6 @@ main(argc, argv) iflg = 0; fflg = 1; break; - case '?': default: usage(); } diff --git a/bin/pax/options.c b/bin/pax/options.c index 25d4fb26478..05cdb90a544 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.6 1996/06/23 14:20:36 deraadt Exp $ */ +/* $OpenBSD: options.c,v 1.7 1996/08/02 12:41:01 deraadt Exp $ */ /* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: options.c,v 1.6 1996/06/23 14:20:36 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: options.c,v 1.7 1996/08/02 12:41:01 deraadt Exp $"; #endif #endif /* not lint */ @@ -508,7 +508,6 @@ pax_options(argc, argv) Zflag = 1; flg |= CZF; break; - case '?': default: pax_usage(); break; diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 80719fe7ff4..ac521f1c4e8 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ps.c,v 1.3 1996/06/23 14:20:51 deraadt Exp $ */ +/* $OpenBSD: ps.c,v 1.4 1996/08/02 12:41:02 deraadt Exp $ */ /* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: ps.c,v 1.3 1996/06/23 14:20:51 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ps.c,v 1.4 1996/08/02 12:41:02 deraadt Exp $"; #endif #endif /* not lint */ @@ -245,7 +245,6 @@ main(argc, argv) case 'x': xflg = 1; break; - case '?': default: usage(); } diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c index f196be8e4a3..1faea0d1b38 100644 --- a/bin/pwd/pwd.c +++ b/bin/pwd/pwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwd.c,v 1.2 1996/06/23 14:20:54 deraadt Exp $ */ +/* $OpenBSD: pwd.c,v 1.3 1996/08/02 12:41:03 deraadt Exp $ */ /* $NetBSD: pwd.c,v 1.7 1995/03/21 09:08:18 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)pwd.c 8.3 (Berkeley) 4/1/94"; #else -static char rcsid[] = "$OpenBSD: pwd.c,v 1.2 1996/06/23 14:20:54 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: pwd.c,v 1.3 1996/08/02 12:41:03 deraadt Exp $"; #endif #endif /* not lint */ @@ -74,7 +74,6 @@ main(argc, argv) switch (ch) { case 'P': break; - case '?': default: usage(); } diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index 3160a6584f4..00f991c9458 100644 --- a/bin/rcp/rcp.c +++ b/bin/rcp/rcp.c @@ -1,5 +1,5 @@ /* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */ -/* $OpenBSD: rcp.c,v 1.5 1996/08/02 12:17:04 deraadt Exp $ */ +/* $OpenBSD: rcp.c,v 1.6 1996/08/02 12:41:04 deraadt Exp $ */ /* * Copyright (c) 1983, 1990, 1992, 1993 @@ -155,7 +155,6 @@ main(argc, argv) iamremote = 1; tflag = 1; break; - case '?': default: usage(); } diff --git a/bin/rm/rm.c b/bin/rm/rm.c index 194e3849b28..efef593945e 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rm.c,v 1.2 1996/06/23 14:20:59 deraadt Exp $ */ +/* $OpenBSD: rm.c,v 1.3 1996/08/02 12:41:05 deraadt Exp $ */ /* $NetBSD: rm.c,v 1.19 1995/09/07 06:48:50 jtc Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rm.c 8.8 (Berkeley) 4/27/95"; #else -static char rcsid[] = "$OpenBSD: rm.c,v 1.2 1996/06/23 14:20:59 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rm.c,v 1.3 1996/08/02 12:41:05 deraadt Exp $"; #endif #endif /* not lint */ @@ -110,7 +110,6 @@ main(argc, argv) case 'W': Wflag = 1; break; - case '?': default: usage(); } diff --git a/bin/rmail/rmail.c b/bin/rmail/rmail.c index 4d264055ded..543b98b6c82 100644 --- a/bin/rmail/rmail.c +++ b/bin/rmail/rmail.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmail.c,v 1.2 1996/06/23 14:21:01 deraadt Exp $ */ +/* $OpenBSD: rmail.c,v 1.3 1996/08/02 12:41:06 deraadt Exp $ */ /* $NetBSD: rmail.c,v 1.8 1995/09/07 06:51:50 jtc Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rmail.c 8.3 (Berkeley) 5/15/95"; #else -static char rcsid[] = "$OpenBSD: rmail.c,v 1.2 1996/06/23 14:21:01 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rmail.c,v 1.3 1996/08/02 12:41:06 deraadt Exp $"; #endif #endif /* not lint */ @@ -118,7 +118,6 @@ main(argc, argv) case 'D': domain = optarg; break; - case '?': default: usage(); } diff --git a/bin/rmdir/rmdir.c b/bin/rmdir/rmdir.c index bdf206c6d7b..bf2bfb76dff 100644 --- a/bin/rmdir/rmdir.c +++ b/bin/rmdir/rmdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmdir.c,v 1.2 1996/06/23 14:21:04 deraadt Exp $ */ +/* $OpenBSD: rmdir.c,v 1.3 1996/08/02 12:41:07 deraadt Exp $ */ /* $NetBSD: rmdir.c,v 1.13 1995/03/21 09:08:31 cgd Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rmdir.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: rmdir.c,v 1.2 1996/06/23 14:21:04 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rmdir.c,v 1.3 1996/08/02 12:41:07 deraadt Exp $"; #endif #endif /* not lint */ @@ -75,7 +75,6 @@ main(argc, argv) case 'p': pflag = 1; break; - case '?': default: usage(); } diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 49d2ddb978c..39b202762a4 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: histedit.c,v 1.2 1996/06/23 14:21:15 deraadt Exp $ */ +/* $OpenBSD: histedit.c,v 1.3 1996/08/02 12:41:08 deraadt Exp $ */ /* $NetBSD: histedit.c,v 1.8 1995/05/11 21:29:12 christos Exp $ */ /*- @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$OpenBSD: histedit.c,v 1.2 1996/06/23 14:21:15 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: histedit.c,v 1.3 1996/08/02 12:41:08 deraadt Exp $"; #endif #endif /* not lint */ @@ -231,7 +231,6 @@ histcmd(argc, argv) break; case ':': error("option -%c expects argument", optopt); - case '?': default: error("unknown option: -%c", optopt); } diff --git a/bin/sleep/sleep.c b/bin/sleep/sleep.c index 910fa412e9a..b9774dd713e 100644 --- a/bin/sleep/sleep.c +++ b/bin/sleep/sleep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sleep.c,v 1.2 1996/06/23 14:21:48 deraadt Exp $ */ +/* $OpenBSD: sleep.c,v 1.3 1996/08/02 12:41:09 deraadt Exp $ */ /* $NetBSD: sleep.c,v 1.8 1995/03/21 09:11:11 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)sleep.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: sleep.c,v 1.2 1996/06/23 14:21:48 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: sleep.c,v 1.3 1996/08/02 12:41:09 deraadt Exp $"; #endif #endif /* not lint */ @@ -66,7 +66,6 @@ main(argc, argv) while ((ch = getopt(argc, argv, "")) != EOF) switch(ch) { - case '?': default: usage(); } diff --git a/bin/stty/stty.c b/bin/stty/stty.c index 43b2c317897..f1d2e894bae 100644 --- a/bin/stty/stty.c +++ b/bin/stty/stty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stty.c,v 1.3 1996/08/02 12:08:25 deraadt Exp $ */ +/* $OpenBSD: stty.c,v 1.4 1996/08/02 12:41:10 deraadt Exp $ */ /* $NetBSD: stty.c,v 1.11 1995/03/21 09:11:30 cgd Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)stty.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: stty.c,v 1.3 1996/08/02 12:08:25 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: stty.c,v 1.4 1996/08/02 12:41:10 deraadt Exp $"; #endif #endif /* not lint */ @@ -92,7 +92,6 @@ main(argc, argv) case 'g': fmt = GFLAG; break; - case '?': default: goto args; } |