From 691010efad5c05f7ee86a870abce217fe8e9b8d1 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 31 Mar 1997 05:11:47 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- usr.sbin/ac/ac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ac/ac.c') diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index f4af92c..ab4da9a 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -14,7 +14,7 @@ */ #ifndef lint -static char rcsid[] = "$Id$"; +static char rcsid[] = "$Id: ac.c,v 1.6 1997/02/22 16:01:11 peter Exp $"; #endif #include @@ -229,7 +229,7 @@ main(argc, argv) (void) setlocale(LC_TIME, ""); fp = NULL; - while ((c = getopt(argc, argv, "Dc:dpt:w:")) != EOF) { + while ((c = getopt(argc, argv, "Dc:dpt:w:")) != -1) { switch (c) { #ifdef DEBUG case 'D': -- cgit v1.1