summaryrefslogtreecommitdiffstats
path: root/lib/libc/db/test/dbtest.c
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2008-02-18 03:19:25 +0000
committerkevlo <kevlo@FreeBSD.org>2008-02-18 03:19:25 +0000
commitc74ac9adc1e9ce054365c1f7687fc1a11904a9ed (patch)
tree8daade9b39a291bb6bad0f508e4b94961de83cfe /lib/libc/db/test/dbtest.c
parent22489bc198dd537674f8fbe4bbc9f8b97e35826b (diff)
downloadFreeBSD-src-c74ac9adc1e9ce054365c1f7687fc1a11904a9ed.zip
FreeBSD-src-c74ac9adc1e9ce054365c1f7687fc1a11904a9ed.tar.gz
getopt(3) returns -1, not EOF.
Diffstat (limited to 'lib/libc/db/test/dbtest.c')
-rw-r--r--lib/libc/db/test/dbtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/db/test/dbtest.c b/lib/libc/db/test/dbtest.c
index 26a5eaf..7de3a5c 100644
--- a/lib/libc/db/test/dbtest.c
+++ b/lib/libc/db/test/dbtest.c
@@ -99,7 +99,7 @@ main(argc, argv)
fname = NULL;
oflags = O_CREAT | O_RDWR;
sflag = 0;
- while ((ch = getopt(argc, argv, "f:i:lo:s")) != EOF)
+ while ((ch = getopt(argc, argv, "f:i:lo:s")) != -1)
switch (ch) {
case 'f':
fname = optarg;
OpenPOWER on IntegriCloud