diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-01-10 20:46:43 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-01-10 20:46:43 +0000 |
commit | c1fab223a55861017641e71cbd6dd652390699e2 (patch) | |
tree | d5b3f32b887771059b2d38d57c697a2435bd2eb9 /ldso | |
parent | ff1c90eba2eccd1fff0315825f10e4512fe9b16c (diff) |
Fixup function prototypes to match definitions in include/dlfcn.h
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/libdl/libdl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 261d90464..56e6850d0 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -30,6 +30,7 @@ */ +#define _GNU_SOURCE #include <ldso.h> #include <stdio.h> @@ -546,7 +547,7 @@ int dlclose(void *vhandle) return do_dlclose(vhandle, 1); } -const char *dlerror(void) +char *dlerror(void) { const char *retval; @@ -562,7 +563,7 @@ const char *dlerror(void) */ static char *type[] = { "Lib", "Exe", "Int", "Mod" }; -void dlinfo(void) +int dlinfo(void) { struct elf_resolve *tpnt; struct dyn_elf *rpnt, *hpnt; @@ -589,6 +590,7 @@ void dlinfo(void) fprintf(stderr, "\t%x %s\n", (unsigned) rpnt->dyn, rpnt->dyn->libname); } + return 0; } int dladdr(const void *__address, Dl_info * __info) |