summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/ld/ldconfig/ldconfig.c4
-rw-r--r--gnu/usr.bin/ld/ldd/ldd.c4
2 files changed, 4 insertions, 4 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;
diff --git a/gnu/usr.bin/ld/ldd/ldd.c b/gnu/usr.bin/ld/ldd/ldd.c
index a0646fce990..989dea48257 100644
--- a/gnu/usr.bin/ld/ldd/ldd.c
+++ b/gnu/usr.bin/ld/ldd/ldd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldd.c,v 1.12 2002/09/07 01:25:34 marc Exp $ */
+/* $OpenBSD: ldd.c,v 1.13 2002/12/08 16:26:58 millert Exp $ */
/* $NetBSD: ldd.c,v 1.12 1995/10/09 00:14:41 pk Exp $ */
/*
* Copyright (c) 1993 Paul Kranenburg
@@ -64,7 +64,7 @@ main(int argc, char *argv[])
int rval;
int c;
- while ((c = getopt(argc, argv, "f:")) != EOF) {
+ while ((c = getopt(argc, argv, "f:")) != -1) {
switch (c) {
case 'f':
if (fmt1) {