diff options
author | Warner Losh <imp@FreeBSD.org> | 1997-03-28 15:48:21 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 1997-03-28 15:48:21 +0000 |
commit | 91477cc4d7fe265d722af24b978c1e6147178301 (patch) | |
tree | 8a411abbd72d727a49138925e161f1519e274a41 /libexec/atrun/atrun.c | |
parent | 93ef08af3ef1a9fb7a3af6b7212d3ca094e9aba6 (diff) | |
download | src-91477cc4d7fe265d722af24b978c1e6147178301.tar.gz src-91477cc4d7fe265d722af24b978c1e6147178301.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=24349
Diffstat (limited to 'libexec/atrun/atrun.c')
-rw-r--r-- | libexec/atrun/atrun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/atrun/atrun.c b/libexec/atrun/atrun.c index ffb28832ebb1..64dec18890fa 100644 --- a/libexec/atrun/atrun.c +++ b/libexec/atrun/atrun.c @@ -71,7 +71,7 @@ /* File scope variables */ static char *namep; -static char rcsid[] = "$Id$"; +static char rcsid[] = "$Id: atrun.c,v 1.8 1997/02/22 14:20:54 peter Exp $"; static debug = 0; void perr(const char *a); @@ -390,7 +390,7 @@ main(int argc, char *argv[]) opterr = 0; errno = 0; - while((c=getopt(argc, argv, "dl:"))!= EOF) + while((c=getopt(argc, argv, "dl:"))!= -1) { switch (c) { |