OSDN Git Service

libdl: no need for _dl_strstr in libdl, use strstr
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 24 Mar 2011 18:06:37 +0000 (19:06 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:33 +0000 (14:00 +0200)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
ldso/include/dl-string.h
ldso/libdl/libdl.c

index dc96533..cb3eeb1 100644 (file)
@@ -204,7 +204,6 @@ static __always_inline char * _dl_get_last_path_component(char *path)
 # define _dl_strcpy strcpy
 # define _dl_strcmp strcmp
 # define _dl_strrchr strrchr
-# define _dl_strstr strstr
 # define _dl_memcpy memcpy
 # define _dl_memcmp memcmp
 # define _dl_memset memset
index 214e699..784a439 100644 (file)
@@ -335,7 +335,7 @@ static void *do_dlopen(const char *libname, int flag)
 # ifdef __SUPPORT_LD_DEBUG__
        _dl_debug = getenv("LD_DEBUG");
        if (_dl_debug) {
-               if (_dl_strstr(_dl_debug, "all")) {
+               if (strstr(_dl_debug, "all")) {
                        _dl_debug_detail = _dl_debug_move = _dl_debug_symbols
                                = _dl_debug_reloc = _dl_debug_bindings = _dl_debug_nofixups = (void*)1;
                } else {