diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2005-01-19 10:31:51 +0000 |
---|---|---|
committer | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2005-01-19 10:31:51 +0000 |
commit | acd92003c8145079c6226211848e26b0472d8445 (patch) | |
tree | 56f271fbcb5b1453d93b89843daedfff749d2419 /ldso | |
parent | 7b735a37585a73e8ec60a03ff52e24fe98f10cec (diff) | |
download | uClibc-alpine-acd92003c8145079c6226211848e26b0472d8445.tar.bz2 uClibc-alpine-acd92003c8145079c6226211848e26b0472d8445.tar.xz |
Avoid compiler warnings.
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/libdl/libdl.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } /* |