diff options
author | Warner Losh <imp@FreeBSD.org> | 1997-03-29 04:34:07 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 1997-03-29 04:34:07 +0000 |
commit | 1c8af8787354e20c2b38cab5801698133ff8b403 (patch) | |
tree | 678b7641c05ca5dc27c06cac1210b2a7712335a9 /usr.bin/at | |
parent | 8d64695c7c6791641c71b15441665bafc43c2bd0 (diff) | |
download | src-1c8af8787354e20c2b38cab5801698133ff8b403.tar.gz src-1c8af8787354e20c2b38cab5801698133ff8b403.zip |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes:
svn path=/head/; revision=24360
Diffstat (limited to 'usr.bin/at')
-rw-r--r-- | usr.bin/at/at.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index 07bf7ffd1cc6..2dea501ad105 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -92,7 +92,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */ /* File scope variables */ -static char rcsid[] = "$Id: at.c,v 1.10 1997/02/22 19:54:04 peter Exp $"; +static char rcsid[] = "$Id: at.c,v 1.12 1997/03/03 07:58:00 ache Exp $"; char *no_export[] = { "TERM", "TERMCAP", "DISPLAY", "_" @@ -639,7 +639,7 @@ main(int argc, char **argv) /* process whatever options we can process */ opterr=1; - while ((c=getopt(argc, argv, options)) != EOF) + while ((c=getopt(argc, argv, options)) != -1) switch (c) { case 'v': /* verify time settings */ atverify = 1; |