diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-09-07 08:36:25 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-09-07 08:36:25 +0000 |
commit | 25d09f9ca6a5e9dcdb695f5d7b9eb1fc8f6cd664 (patch) | |
tree | abf7e30ea5c2c3f54ebe529903e0e8acd3a9e93e /ldso/libdl | |
parent | 4bbfdf97af8375b6a3ed09ebe03484c7399bf2d0 (diff) |
Use a more appealing name, matching the function prototype
Diffstat (limited to 'ldso/libdl')
-rw-r--r-- | ldso/libdl/libdl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 44fecbad9..dee95b6fd 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -534,7 +534,7 @@ void dlinfo(void) } } -int dladdr(void *__address, Dl_info * __dlip) +int dladdr(const void *__address, Dl_info * __info) { struct elf_resolve *pelf; struct elf_resolve *rpnt; @@ -547,7 +547,7 @@ int dladdr(void *__address, Dl_info * __dlip) pelf = NULL; #if 0 - fprintf(stderr, "dladdr( %x, %x )\n", __address, __dlip); + fprintf(stderr, "dladdr( %x, %x )\n", __address, __info); #endif for (rpnt = _dl_loaded_modules; rpnt; rpnt = rpnt->next) { @@ -603,10 +603,10 @@ int dladdr(void *__address, Dl_info * __dlip) } if (sf) { - __dlip->dli_fname = pelf->libname; - __dlip->dli_fbase = (void *)pelf->loadaddr; - __dlip->dli_sname = strtab + symtab[sn].st_name; - __dlip->dli_saddr = (void *)sa; + __info->dli_fname = pelf->libname; + __info->dli_fbase = (void *)pelf->loadaddr; + __info->dli_sname = strtab + symtab[sn].st_name; + __info->dli_saddr = (void *)sa; } return 1; } |