summaryrefslogtreecommitdiffstats
path: root/usr.bin/ldd
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-09-04 06:09:54 +0000
committerimp <imp@FreeBSD.org>2000-09-04 06:09:54 +0000
commit3c95f9ccdee03bbd5201ce0c06d795f6b132e266 (patch)
tree4e524d498db186c036b4495d56fd8d77c6a9d266 /usr.bin/ldd
parent180527062b861cb7c3ec4718c0522abe8677950a (diff)
downloadFreeBSD-src-3c95f9ccdee03bbd5201ce0c06d795f6b132e266.zip
FreeBSD-src-3c95f9ccdee03bbd5201ce0c06d795f6b132e266.tar.gz
getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.
Diffstat (limited to 'usr.bin/ldd')
-rw-r--r--usr.bin/ldd/ldd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c
index d565d60..5c25d05 100644
--- a/usr.bin/ldd/ldd.c
+++ b/usr.bin/ldd/ldd.c
@@ -65,7 +65,7 @@ char *argv[];
int c;
int vflag = 0;
- while ((c = getopt(argc, argv, "vf:")) != EOF) {
+ while ((c = getopt(argc, argv, "vf:")) != -1) {
switch (c) {
case 'v':
vflag++;
OpenPOWER on IntegriCloud