diff options
author | kib <kib@FreeBSD.org> | 2015-05-27 08:23:23 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-05-27 08:23:23 +0000 |
commit | aed85e60ed6141ffee8b8ebc57f954582e51dd7b (patch) | |
tree | 2ef8d4d95728bafbbd42417ca3eb207bb2c76074 /lib/libc/gen | |
parent | cf32ec5d9e659f5dff78c9e333977f5cf367d59f (diff) | |
download | FreeBSD-src-aed85e60ed6141ffee8b8ebc57f954582e51dd7b.zip FreeBSD-src-aed85e60ed6141ffee8b8ebc57f954582e51dd7b.tar.gz |
MFC r283153:
Remove the write-only variable phent.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/dlfcn.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c index 5bdf4ab..7d28797 100644 --- a/lib/libc/gen/dlfcn.c +++ b/lib/libc/gen/dlfcn.c @@ -149,10 +149,8 @@ static void dl_init_phdr_info(void) { Elf_Auxinfo *auxp; - size_t phent; unsigned int i; - phent = 0; for (auxp = __elf_aux_vector; auxp->a_type != AT_NULL; auxp++) { switch (auxp->a_type) { case AT_BASE: @@ -165,9 +163,6 @@ dl_init_phdr_info(void) phdr_info.dlpi_phdr = (const Elf_Phdr *)auxp->a_un.a_ptr; break; - case AT_PHENT: - phent = auxp->a_un.a_val; - break; case AT_PHNUM: phdr_info.dlpi_phnum = (Elf_Half)auxp->a_un.a_val; break; |