From f9946285cec1137bf5353f904c085bb683dd293b Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 24 Mar 2011 10:32:10 +0100 Subject: libdl.c,dl-string.h: do not use inlined _dl_memset and others in libdl Use the one from libc. While there, remove unused _dl_strncmp() and superfluos static forward declarations. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- ldso/libdl/libdl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ldso/libdl') diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 51bcf7d25..540dd9459 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -32,7 +32,7 @@ #include #include -#include /* Needed for 'strstr' prototype' */ +#include #include #include @@ -393,7 +393,7 @@ static void *do_dlopen(const char *libname, int flag) return NULL; } dyn_chain = (struct dyn_elf *) malloc(sizeof(struct dyn_elf)); - _dl_memset(dyn_chain, 0, sizeof(struct dyn_elf)); + memset(dyn_chain, 0, sizeof(struct dyn_elf)); dyn_chain->dyn = tpnt; tpnt->rtld_flags |= (flag & RTLD_GLOBAL); @@ -444,7 +444,7 @@ static void *do_dlopen(const char *libname, int flag) /* This list is for dlsym() and relocation */ dyn_ptr->next = (struct dyn_elf *) malloc(sizeof(struct dyn_elf)); - _dl_memset (dyn_ptr->next, 0, sizeof (struct dyn_elf)); + memset (dyn_ptr->next, 0, sizeof (struct dyn_elf)); dyn_ptr = dyn_ptr->next; dyn_ptr->dyn = tpnt1; /* Used to record RTLD_LOCAL scope */ -- cgit v1.2.3