diff options
author | millert <> | 1997-01-15 23:43:43 +0000 |
---|---|---|
committer | millert <> | 1997-01-15 23:43:43 +0000 |
commit | 3dcd8c4aebf5203dff6e9d4c88414c207e0ab74c (patch) | |
tree | 2f4eb6cb395038759776aa9f3a547726e402ce80 /src/regress/lib/libc/db/dbtest.c | |
parent | f8953640b655af43a4ee7a6448038e8c3fe37076 (diff) | |
download | openbsd-3dcd8c4aebf5203dff6e9d4c88414c207e0ab74c.tar.gz openbsd-3dcd8c4aebf5203dff6e9d4c88414c207e0ab74c.tar.bz2 openbsd-3dcd8c4aebf5203dff6e9d4c88414c207e0ab74c.zip |
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'src/regress/lib/libc/db/dbtest.c')
-rw-r--r-- | src/regress/lib/libc/db/dbtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regress/lib/libc/db/dbtest.c b/src/regress/lib/libc/db/dbtest.c index 65587a6fcb..ac9eaa48fd 100644 --- a/src/regress/lib/libc/db/dbtest.c +++ b/src/regress/lib/libc/db/dbtest.c | |||
@@ -107,7 +107,7 @@ main(argc, argv) | |||
107 | fname = NULL; | 107 | fname = NULL; |
108 | oflags = O_CREAT | O_RDWR; | 108 | oflags = O_CREAT | O_RDWR; |
109 | sflag = 0; | 109 | sflag = 0; |
110 | while ((ch = getopt(argc, argv, "f:i:lo:s")) != EOF) | 110 | while ((ch = getopt(argc, argv, "f:i:lo:s")) != -1) |
111 | switch (ch) { | 111 | switch (ch) { |
112 | case 'f': | 112 | case 'f': |
113 | fname = optarg; | 113 | fname = optarg; |