diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2018-04-22 09:10:13 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2018-04-22 11:09:42 +0100 |
commit | 8d7723d1c122c31a07cc6d51ab587ea879dca099 (patch) | |
tree | 468c49720c7614cf367a3bdb842cfe98bdc15308 /ldso/libdl/libdl.c | |
parent | d89de5cba65e37c95e6174bdeab4039e50d546f9 (diff) |
libdl: remove gcc warnings
Diffstat (limited to 'ldso/libdl/libdl.c')
-rw-r--r-- | ldso/libdl/libdl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index ebf6ae329..ff2753591 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -619,7 +619,7 @@ static void *do_dlopen(const char *libname, int flag, ElfW(Addr) from) continue; tpnt->init_flag |= INIT_FUNCS_CALLED; - if (tpnt->dynamic_info[DT_INIT] != NULL) { + if (tpnt->dynamic_info[DT_INIT]) { void (*dl_elf_func) (void); dl_elf_func = (void (*)(void)) DL_RELOC_ADDR(tpnt->loadaddr, tpnt->dynamic_info[DT_INIT]); if (dl_elf_func) { @@ -629,7 +629,7 @@ static void *do_dlopen(const char *libname, int flag, ElfW(Addr) from) } } - if (tpnt->dynamic_info[DT_INIT_ARRAY] != NULL) { + if (tpnt->dynamic_info[DT_INIT_ARRAY]) { void (*dl_elf_func) (void); dl_elf_func = (void (*)(void)) DL_RELOC_ADDR(tpnt->loadaddr, tpnt->dynamic_info[DT_INIT_ARRAY]); if (dl_elf_func) { @@ -835,14 +835,14 @@ static int do_dlclose(void *vhandle, int need_fini) ) { tpnt->init_flag |= FINI_FUNCS_CALLED; - if (tpnt->dynamic_info[DT_FINI_ARRAY] != NULL) { + if (tpnt->dynamic_info[DT_FINI_ARRAY]) { dl_elf_fini = (int (*)(void)) DL_RELOC_ADDR(tpnt->loadaddr, tpnt->dynamic_info[DT_FINI_ARRAY]); _dl_if_debug_print("running dtors for library %s at '%p'\n", tpnt->libname, dl_elf_fini); _dl_run_fini_array(tpnt); } - if (tpnt->dynamic_info[DT_FINI] != NULL) { + if (tpnt->dynamic_info[DT_FINI]) { dl_elf_fini = (int (*)(void)) DL_RELOC_ADDR(tpnt->loadaddr, tpnt->dynamic_info[DT_FINI]); _dl_if_debug_print("running old-style dtors for library %s at '%p'\n", tpnt->libname, dl_elf_fini); |