diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-08 16:27:18 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-08 16:27:18 +0000 |
commit | 575d3fc4197705961dd3a1a91780df758087ebec (patch) | |
tree | 9be6e0fc9b38c43112cde0386d7f68af19d56731 /gnu/usr.bin/ld/ldd/ldd.c | |
parent | b967dfa0fdbc44a096efb127ae28bbeaf82b640a (diff) |
getopt returns -1, not EOF
Diffstat (limited to 'gnu/usr.bin/ld/ldd/ldd.c')
-rw-r--r-- | gnu/usr.bin/ld/ldd/ldd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |