From 91477cc4d7fe265d722af24b978c1e6147178301 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 28 Mar 1997 15:48:21 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- libexec/atrun/atrun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/atrun/atrun.c') 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) { -- cgit v1.2.3