From 2aa5a61fd32c181b70181233740e601e8d759d8d Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 19 Feb 2008 07:09:19 +0000 Subject: getopt(3) returns -1, not EOF. --- gnu/usr.bin/man/man/man.c | 2 +- gnu/usr.bin/man/manpath/manpath.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu') 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) { -- cgit v1.1