From acd92003c8145079c6226211848e26b0472d8445 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Wed, 19 Jan 2005 10:31:51 +0000 Subject: Avoid compiler warnings. --- ldso/libdl/libdl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ldso') diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 56e6850d0..012056a35 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -358,7 +358,7 @@ void *dlopen(const char *libname, int flag) if (dl_elf_func && *dl_elf_func != NULL) { #ifdef __SUPPORT_LD_DEBUG__ if(_dl_debug) - fprintf(stderr, "running ctors for library %s at '%x'\n", tpnt->libname, dl_elf_func); + fprintf(stderr, "running ctors for library %s at '%x'\n", tpnt->libname, (unsigned)dl_elf_func); #endif (*dl_elf_func) (); } @@ -466,7 +466,7 @@ static int do_dlclose(void *vhandle, int need_fini) dl_elf_fini = (int (*)(void)) (tpnt->loadaddr + tpnt->dynamic_info[DT_FINI]); #ifdef __SUPPORT_LD_DEBUG__ if(_dl_debug) - fprintf(stderr, "running dtors for library %s at '%x'\n", tpnt->libname, dl_elf_fini); + fprintf(stderr, "running dtors for library %s at '%x'\n", tpnt->libname, (unsigned)dl_elf_fini); #endif (*dl_elf_fini) (); } @@ -555,7 +555,7 @@ char *dlerror(void) return NULL; retval = dl_error_names[_dl_error_number]; _dl_error_number = 0; - return retval; + return (char *)retval; } /* -- cgit v1.2.3