summaryrefslogtreecommitdiff
path: root/libexec/ld.so/test
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2001-10-24 13:06:37 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2001-10-24 13:06:37 +0000
commit9531af194e3d30d1d195cd6cee8ddf4e13f5e668 (patch)
tree50e73d1a354adfd017b644ec37a53be2492d04a7 /libexec/ld.so/test
parenta8300e86e7f5e26893c1db0e382f2f2ce983954c (diff)
getopt(3) returns -1 when out of args, not EOF.
millert@ ok
Diffstat (limited to 'libexec/ld.so/test')
-rw-r--r--libexec/ld.so/test/dltest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/test/dltest.c b/libexec/ld.so/test/dltest.c
index 77420d5f69e..3293cdf3e12 100644
--- a/libexec/ld.so/test/dltest.c
+++ b/libexec/ld.so/test/dltest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dltest.c,v 1.4 2001/09/25 21:51:16 drahn Exp $ */
+/* $OpenBSD: dltest.c,v 1.5 2001/10/24 13:06:35 mpech Exp $ */
#include <stdio.h>
#include <stdlib.h>
@@ -35,7 +35,7 @@ main(int argc, char **argv)
int ch;
int mode;
- while((ch = getopt(argc, argv, "a:b:f:l:")) != EOF) {
+ while((ch = getopt(argc, argv, "a:b:f:l:")) != -1) {
switch(ch) {
case 'a':
param = optarg;