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/disklabel/disklabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/disklabel') diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 032f601..f0b2a8b 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -160,7 +160,7 @@ main(argc, argv) int ch, f, flag, error = 0; char *name = 0; - while ((ch = getopt(argc, argv, OPTIONS)) != EOF) + while ((ch = getopt(argc, argv, OPTIONS)) != -1) switch (ch) { #if NUMBOOT > 0 case 'B': -- cgit v1.1