aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/kvm_mkdb
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-03-31 05:11:47 +0000
committerWarner Losh <imp@FreeBSD.org>1997-03-31 05:11:47 +0000
commit6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc (patch)
tree9dcc58d3fb5e1644413565971c98196650ef87d3 /usr.sbin/kvm_mkdb
parent44ee97a91b095311b8703857d54df336354236a0 (diff)
downloadsrc-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.tar.gz
src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.zip
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes: svn path=/head/; revision=24428
Diffstat (limited to 'usr.sbin/kvm_mkdb')
-rw-r--r--usr.sbin/kvm_mkdb/kvm_mkdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/kvm_mkdb/kvm_mkdb.c b/usr.sbin/kvm_mkdb/kvm_mkdb.c
index 7a894848cfed..b842d1ea1f97 100644
--- a/usr.sbin/kvm_mkdb/kvm_mkdb.c
+++ b/usr.sbin/kvm_mkdb/kvm_mkdb.c
@@ -76,7 +76,7 @@ main(argc, argv)
int ch;
char *p, *nlistpath, *nlistname, dbtemp[MAXPATHLEN], dbname[MAXPATHLEN];
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':
default: