summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/ldconfig
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-12-08 16:27:18 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-12-08 16:27:18 +0000
commit575d3fc4197705961dd3a1a91780df758087ebec (patch)
tree9be6e0fc9b38c43112cde0386d7f68af19d56731 /gnu/usr.bin/ld/ldconfig
parentb967dfa0fdbc44a096efb127ae28bbeaf82b640a (diff)
getopt returns -1, not EOF
Diffstat (limited to 'gnu/usr.bin/ld/ldconfig')
-rw-r--r--gnu/usr.bin/ld/ldconfig/ldconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/ld/ldconfig/ldconfig.c b/gnu/usr.bin/ld/ldconfig/ldconfig.c
index fc1de5cc93d..98a21749f81 100644
--- a/gnu/usr.bin/ld/ldconfig/ldconfig.c
+++ b/gnu/usr.bin/ld/ldconfig/ldconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldconfig.c,v 1.14 2002/09/07 01:25:34 marc Exp $ */
+/* $OpenBSD: ldconfig.c,v 1.15 2002/12/08 16:27:17 millert Exp $ */
/*
* Copyright (c) 1993,1995 Paul Kranenburg
@@ -91,7 +91,7 @@ main(int argc, char *argv[])
int i, c;
int rval = 0;
- while ((c = getopt(argc, argv, "RUmrsv")) != EOF) {
+ while ((c = getopt(argc, argv, "RUmrsv")) != -1) {
switch (c) {
case 'R':
rescan = 1;