diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 15:50:15 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 15:50:15 +0000 |
commit | c15c510b0a30c10cddac32042b27cf4352cf1196 (patch) | |
tree | 930885ed45cdfe81e12ff656960c463bdbd552d1 | |
parent | d9ca52668297da80e47ff48f9f0331303c6492b6 (diff) |
-1 -> MAP_FAILED
-rw-r--r-- | libexec/ld.so/ldd/ldd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/ldd/ldd.c b/libexec/ld.so/ldd/ldd.c index 9c0720c0a47..5a3bb37c96a 100644 --- a/libexec/ld.so/ldd/ldd.c +++ b/libexec/ld.so/ldd/ldd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldd.c,v 1.1 2000/09/17 17:50:57 deraadt Exp $ */ +/* $OpenBSD: ldd.c,v 1.2 2001/05/11 15:50:14 art Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -194,7 +194,7 @@ readsoneeded(FILE *infile, int dyncheck) if (fstat(fileno(infile), &st)) return -1L; header = mmap(0, st.st_size, PROT_READ, MAP_SHARED, fileno(infile), 0); - if (header == (caddr_t)-1) + if (header == MAP_FAILED) return -1; epnt = (Elf32_Ehdr *)header; |