diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cp/cp.c | 6 | ||||
-rw-r--r-- | bin/csh/printf.c | 6 | ||||
-rw-r--r-- | bin/ed/main.c | 6 | ||||
-rw-r--r-- | bin/pwd/pwd.c | 6 | ||||
-rw-r--r-- | bin/rcp/rcp.c | 4 | ||||
-rw-r--r-- | bin/rmail/rmail.c | 6 | ||||
-rw-r--r-- | bin/sh/histedit.c | 6 | ||||
-rw-r--r-- | bin/sleep/sleep.c | 6 |
8 files changed, 23 insertions, 23 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c index fc3e45047e8..a3d98a481e4 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cp.c,v 1.5 1996/12/14 12:17:38 mickey Exp $ */ +/* $OpenBSD: cp.c,v 1.6 1997/01/15 23:40:20 millert 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.5 1996/12/14 12:17:38 mickey Exp $"; +static char rcsid[] = "$OpenBSD: cp.c,v 1.6 1997/01/15 23:40:20 millert Exp $"; #endif #endif /* not lint */ @@ -110,7 +110,7 @@ main(argc, argv) char *target; Hflag = Lflag = Pflag = Rflag = 0; - while ((ch = getopt(argc, argv, "HLPRfipr")) != EOF) + while ((ch = getopt(argc, argv, "HLPRfipr")) != -1) switch (ch) { case 'H': Hflag = 1; diff --git a/bin/csh/printf.c b/bin/csh/printf.c index b39ff0a7c44..08caba6fa0e 100644 --- a/bin/csh/printf.c +++ b/bin/csh/printf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printf.c,v 1.5 1996/12/14 12:17:41 mickey Exp $ */ +/* $OpenBSD: printf.c,v 1.6 1997/01/15 23:40:22 millert 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.5 1996/12/14 12:17:41 mickey Exp $"; +static char rcsid[] = "$OpenBSD: printf.c,v 1.6 1997/01/15 23:40:22 millert Exp $"; #endif #endif /* not lint */ @@ -97,7 +97,7 @@ main(argc, argv) int ch, end, fieldwidth, precision; char convch, nextch, *format, *fmt, *start; - while ((ch = getopt(argc, argv, "")) != EOF) + while ((ch = getopt(argc, argv, "")) != -1) switch (ch) { default: usage(); diff --git a/bin/ed/main.c b/bin/ed/main.c index 0400323cdf0..34d69311131 100644 --- a/bin/ed/main.c +++ b/bin/ed/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.5 1996/12/14 12:17:56 mickey Exp $ */ +/* $OpenBSD: main.c,v 1.6 1997/01/15 23:40:23 millert Exp $ */ /* $NetBSD: main.c,v 1.3 1995/03/21 09:04:44 cgd Exp $ */ /* main.c: This file contains the main control and user-interface routines @@ -39,7 +39,7 @@ char *copyright = #if 0 static char *rcsid = "@(#)main.c,v 1.1 1994/02/01 00:34:42 alm Exp"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.5 1996/12/14 12:17:56 mickey Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.6 1997/01/15 23:40:23 millert Exp $"; #endif #endif /* not lint */ @@ -118,7 +118,7 @@ main(argc, argv) red = (n = strlen(argv[0])) > 2 && argv[0][n - 3] == 'r'; top: - while ((c = getopt(argc, argv, "p:sx")) != EOF) + while ((c = getopt(argc, argv, "p:sx")) != -1) switch(c) { case 'p': /* set prompt */ prompt = optarg; diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c index 25caf23be98..3de15a81e2f 100644 --- a/bin/pwd/pwd.c +++ b/bin/pwd/pwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwd.c,v 1.4 1996/12/14 12:18:12 mickey Exp $ */ +/* $OpenBSD: pwd.c,v 1.5 1997/01/15 23:40:24 millert 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.4 1996/12/14 12:18:12 mickey Exp $"; +static char rcsid[] = "$OpenBSD: pwd.c,v 1.5 1997/01/15 23:40:24 millert Exp $"; #endif #endif /* not lint */ @@ -70,7 +70,7 @@ main(argc, argv) * there's no way to display a logical path after forking. We don't * document either flag, only adding -P for future portability. */ - while ((ch = getopt(argc, argv, "P")) != EOF) + while ((ch = getopt(argc, argv, "P")) != -1) switch (ch) { case 'P': break; diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index 39112c5d95f..2052c22c0a9 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.8 1996/12/22 02:57:51 tholo Exp $ */ +/* $OpenBSD: rcp.c,v 1.9 1997/01/15 23:40:25 millert Exp $ */ /* * Copyright (c) 1983, 1990, 1992, 1993 @@ -124,7 +124,7 @@ main(argc, argv) char *targ, *shell; fflag = tflag = 0; - while ((ch = getopt(argc, argv, OPTIONS)) != EOF) + while ((ch = getopt(argc, argv, OPTIONS)) != -1) switch(ch) { /* User-visible flags. */ case 'K': #ifdef KERBEROS diff --git a/bin/rmail/rmail.c b/bin/rmail/rmail.c index 570d61e8e0a..1b8d4e41a15 100644 --- a/bin/rmail/rmail.c +++ b/bin/rmail/rmail.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmail.c,v 1.4 1996/12/14 12:18:17 mickey Exp $ */ +/* $OpenBSD: rmail.c,v 1.5 1997/01/15 23:40:26 millert 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.4 1996/12/14 12:18:17 mickey Exp $"; +static char rcsid[] = "$OpenBSD: rmail.c,v 1.5 1997/01/15 23:40:26 millert Exp $"; #endif #endif /* not lint */ @@ -115,7 +115,7 @@ main(argc, argv) debug = 0; domain = "UUCP"; /* Default "domain". */ - while ((ch = getopt(argc, argv, "D:T")) != EOF) + while ((ch = getopt(argc, argv, "D:T")) != -1) switch (ch) { case 'T': debug = 1; diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 319bd86e33f..1e1da1fd79b 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: histedit.c,v 1.6 1996/10/20 00:54:50 millert Exp $ */ +/* $OpenBSD: histedit.c,v 1.7 1997/01/15 23:40:28 millert 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.6 1996/10/20 00:54:50 millert Exp $"; +static char rcsid[] = "$OpenBSD: histedit.c,v 1.7 1997/01/15 23:40:28 millert Exp $"; #endif #endif /* not lint */ @@ -211,7 +211,7 @@ histcmd(argc, argv) optreset = 1; optind = 1; /* initialize getopt */ while (not_fcnumber(argv[optind]) && - (ch = getopt(argc, argv, ":e:lnrs")) != EOF) + (ch = getopt(argc, argv, ":e:lnrs")) != -1) switch ((char)ch) { case 'e': editor = optarg; diff --git a/bin/sleep/sleep.c b/bin/sleep/sleep.c index b9774dd713e..7f1a9eeab99 100644 --- a/bin/sleep/sleep.c +++ b/bin/sleep/sleep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sleep.c,v 1.3 1996/08/02 12:41:09 deraadt Exp $ */ +/* $OpenBSD: sleep.c,v 1.4 1997/01/15 23:40:28 millert 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.3 1996/08/02 12:41:09 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: sleep.c,v 1.4 1997/01/15 23:40:28 millert Exp $"; #endif #endif /* not lint */ @@ -64,7 +64,7 @@ main(argc, argv) setlocale(LC_ALL, ""); - while ((ch = getopt(argc, argv, "")) != EOF) + while ((ch = getopt(argc, argv, "")) != -1) switch(ch) { default: usage(); |