diff options
author | imp <imp@FreeBSD.org> | 1997-03-28 15:48:21 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-03-28 15:48:21 +0000 |
commit | 3125d931c2865b48cb5780a22e277701803212c6 (patch) | |
tree | 5fe9e887ce5fdacb7324ecf172d3dc7bbd561532 /libexec/atrun/atrun.c | |
parent | 054f35c2222ef251bc2877814cf7bf5ff6038166 (diff) | |
download | FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.zip FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.tar.gz |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
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 ffb2883..64dec18 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) { |