summaryrefslogtreecommitdiffstats
path: root/ldso
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2005-01-19 10:31:51 +0000
committerPeter Kjellerstedt <peter.kjellerstedt@axis.com>2005-01-19 10:31:51 +0000
commitacd92003c8145079c6226211848e26b0472d8445 (patch)
tree56f271fbcb5b1453d93b89843daedfff749d2419 /ldso
parent7b735a37585a73e8ec60a03ff52e24fe98f10cec (diff)
downloaduClibc-alpine-acd92003c8145079c6226211848e26b0472d8445.tar.bz2
uClibc-alpine-acd92003c8145079c6226211848e26b0472d8445.tar.xz
Avoid compiler warnings.
Diffstat (limited to 'ldso')
-rw-r--r--ldso/libdl/libdl.c6
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;
}
/*