diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2008-02-18 03:19:25 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2008-02-18 03:19:25 +0000 |
commit | 8f9872ccb3b6d9d2128b535bf2d9a2e7211ef881 (patch) | |
tree | 8daade9b39a291bb6bad0f508e4b94961de83cfe /lib/libc/regex | |
parent | a84bcdcea597895931b74c62341678bd5649f310 (diff) | |
download | src-8f9872ccb3b6d9d2128b535bf2d9a2e7211ef881.tar.gz src-8f9872ccb3b6d9d2128b535bf2d9a2e7211ef881.zip |
getopt(3) returns -1, not EOF.
Notes
Notes:
svn path=/head/; revision=176380
Diffstat (limited to 'lib/libc/regex')
-rw-r--r-- | lib/libc/regex/grot/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/regex/grot/main.c b/lib/libc/regex/grot/main.c index 6b2bf386eed4..9563de4d8b8a 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); |