diff options
author | ru <ru@FreeBSD.org> | 2008-02-19 07:09:19 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2008-02-19 07:09:19 +0000 |
commit | 2aa5a61fd32c181b70181233740e601e8d759d8d (patch) | |
tree | 578506eede3120635d7308f1fed95a1c6147a49a /gnu | |
parent | 82432917a301545733ec74d5c38248d1009e3e9d (diff) | |
download | FreeBSD-src-2aa5a61fd32c181b70181233740e601e8d759d8d.zip FreeBSD-src-2aa5a61fd32c181b70181233740e601e8d759d8d.tar.gz |
getopt(3) returns -1, not EOF.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/man/man/man.c | 2 | ||||
-rw-r--r-- | gnu/usr.bin/man/manpath/manpath.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c index 2cdd22a..39b452e 100644 --- a/gnu/usr.bin/man/man/man.c +++ b/gnu/usr.bin/man/man/man.c @@ -324,7 +324,7 @@ man_getopt (argc, argv) extern void downcase (); extern char *manpath (); - while ((c = getopt (argc, argv, args)) != EOF) + while ((c = getopt (argc, argv, args)) != -1) { switch (c) { diff --git a/gnu/usr.bin/man/manpath/manpath.c b/gnu/usr.bin/man/manpath/manpath.c index c1a25de..8c514a4 100644 --- a/gnu/usr.bin/man/manpath/manpath.c +++ b/gnu/usr.bin/man/manpath/manpath.c @@ -78,7 +78,7 @@ main(argc, argv) prognam = mkprogname (argv[0]); - while ((c = getopt (argc, argv, "dhLq?")) != EOF) + while ((c = getopt (argc, argv, "dhLq?")) != -1) { switch (c) { |