[PATCH] pldd: Remove unused argument
Marek Polacek
mpolacek@redhat.com
Fri Aug 5 12:35:00 GMT 2011
2011-08-05 Marek Polacek <mpolacek@redhat.com>
* elf/pldd-xx.c (find_maps): Remove unused argument `ehdr'.
* elf/pldd.c (get_process_info): Adjust caller.
--- libc/elf/pldd-xx.c.mp 2011-07-26 15:08:16.642794701 +0200
+++ libc/elf/pldd-xx.c 2011-07-26 15:09:38.135803773 +0200
@@ -75,7 +75,7 @@ static_assert (r_map, (offsetof (struct
static int
-E(find_maps) (pid_t pid, EW(Ehdr) *ehdr, void *auxv, size_t auxv_size)
+E(find_maps) (pid_t pid, void *auxv, size_t auxv_size)
{
EW(Addr) phdr = 0;
unsigned int phnum = 0;
--- libc/elf/pldd.c.mp 2011-07-26 15:08:20.367825479 +0200
+++ libc/elf/pldd.c 2011-07-26 15:09:27.703814897 +0200
@@ -228,7 +228,7 @@ get_process_info (pid_t pid)
close (fd);
if (uehdr.ehdr32.e_ident[EI_CLASS] == ELFCLASS32)
- return find_maps32 (pid, &uehdr.ehdr32, auxv, auxv_size);
+ return find_maps32 (pid, auxv, auxv_size);
else
- return find_maps64 (pid, &uehdr.ehdr64, auxv, auxv_size);
+ return find_maps64 (pid, auxv, auxv_size);
}
More information about the Libc-alpha
mailing list