From 167db5291223948e17d74470feff53f15777fcaf Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 29 Mar 1997 03:33:12 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- sbin/i386/nextboot/nextboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/i386/nextboot') diff --git a/sbin/i386/nextboot/nextboot.c b/sbin/i386/nextboot/nextboot.c index 2398b56..5461884 100644 --- a/sbin/i386/nextboot/nextboot.c +++ b/sbin/i386/nextboot/nextboot.c @@ -66,7 +66,7 @@ main (int argc, char** argv) int part; bflag = 0; - while ((ch = getopt(argc, argv, "bde")) != EOF) { + while ((ch = getopt(argc, argv, "bde")) != -1) { switch(ch) { case 'b': bflag = 1; -- cgit v1.1