From c74ac9adc1e9ce054365c1f7687fc1a11904a9ed Mon Sep 17 00:00:00 2001 From: kevlo Date: Mon, 18 Feb 2008 03:19:25 +0000 Subject: getopt(3) returns -1, not EOF. --- lib/libc/regex/grot/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/regex') diff --git a/lib/libc/regex/grot/main.c b/lib/libc/regex/grot/main.c index 6b2bf38..9563de4 100644 --- a/lib/libc/regex/grot/main.c +++ b/lib/libc/regex/grot/main.c @@ -44,7 +44,7 @@ char *argv[]; progname = argv[0]; - while ((c = getopt(argc, argv, "c:e:S:E:x")) != EOF) + while ((c = getopt(argc, argv, "c:e:S:E:x")) != -1) switch (c) { case 'c': /* compile options */ copts = options('c', optarg); -- cgit v1.1