diff options
author | imp <imp@FreeBSD.org> | 1997-03-29 04:34:07 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-03-29 04:34:07 +0000 |
commit | 141381e1cbdbd8001c13e9e8c0adbfc81d1b3cd0 (patch) | |
tree | ab151e53b638b3b80f31c7b8a8ab143c391d7b75 /usr.bin/sgmls/instant/main.c | |
parent | 167db5291223948e17d74470feff53f15777fcaf (diff) | |
download | FreeBSD-src-141381e1cbdbd8001c13e9e8c0adbfc81d1b3cd0.zip FreeBSD-src-141381e1cbdbd8001c13e9e8c0adbfc81d1b3cd0.tar.gz |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'usr.bin/sgmls/instant/main.c')
-rw-r--r-- | usr.bin/sgmls/instant/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sgmls/instant/main.c b/usr.bin/sgmls/instant/main.c index 511fedf..2f10537 100644 --- a/usr.bin/sgmls/instant/main.c +++ b/usr.bin/sgmls/instant/main.c @@ -66,7 +66,7 @@ #ifndef lint static char *RCSid = - "$Header: /usr/src/docbook-to-man/Instant/RCS/main.c,v 1.8 1996/06/12 03:32:48 fld Exp $"; + "$Header: /home/ncvs/src/usr.bin/sgmls/instant/main.c,v 1.1.1.1 1996/09/08 01:55:10 jfieber Exp $"; #endif #include <stdio.h> @@ -266,7 +266,7 @@ HandleArgs( extern char *optarg; extern int optind; - while ((c=getopt(ac, av, "df:t:v:o:huSxIl:bHVWi:D:Z")) != EOF) { + while ((c=getopt(ac, av, "df:t:v:o:huSxIl:bHVWi:D:Z")) != -1) { switch (c) { case 't': tranfile = optarg; break; case 'v': do_validate = 1; break; |