summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2004-08-13 16:45:42 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2004-08-13 16:45:42 +0000
commitbd5a687fd9ff58e964fba5f7fcf59f4219ffa09c (patch)
tree0143505dc3a219dba082befb745584566e9e257f
parent9520371779669492783bddd93c89b2001b96d23a (diff)
Cast to Elf_Addr to remove warnings of ELF types(int)/pointer, ok david@
-rw-r--r--libexec/ld.so/dlfcn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/dlfcn.c b/libexec/ld.so/dlfcn.c
index 9f4ce2c614b..dda9821a350 100644
--- a/libexec/ld.so/dlfcn.c
+++ b/libexec/ld.so/dlfcn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dlfcn.c,v 1.39 2004/08/11 19:14:56 drahn Exp $ */
+/* $OpenBSD: dlfcn.c,v 1.40 2004/08/13 16:45:41 drahn Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -440,7 +440,7 @@ obj_from_addr(const void *addr)
end = sym->st_value;
}
- if (end && addr >= start && addr <= end)
+ if (end && (Elf_Addr) addr >= start && (Elf_Addr) addr <= end)
return _dl_objects;
else
return NULL;