From bd5a687fd9ff58e964fba5f7fcf59f4219ffa09c Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Fri, 13 Aug 2004 16:45:42 +0000 Subject: Cast to Elf_Addr to remove warnings of ELF types(int)/pointer, ok david@ --- libexec/ld.so/dlfcn.c | 4 ++-- 1 file 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; -- cgit v1.2.3