From 25d09f9ca6a5e9dcdb695f5d7b9eb1fc8f6cd664 Mon Sep 17 00:00:00 2001
From: Eric Andersen <andersen@codepoet.org>
Date: Tue, 7 Sep 2004 08:36:25 +0000
Subject: Use a more appealing name, matching the function prototype

---
 ldso/libdl/libdl.c | 12 ++++++------
 1 file 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;
 	}
-- 
cgit v1.2.3