Date: Wed, 27 May 2015 08:23:23 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r283597 - stable/10/lib/libc/gen Message-ID: <201505270823.t4R8NNVV035165@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed May 27 08:23:23 2015 New Revision: 283597 URL: https://svnweb.freebsd.org/changeset/base/283597 Log: MFC r283153: Remove the write-only variable phent. Modified: stable/10/lib/libc/gen/dlfcn.c Directory Properties: stable/10/ (props changed) Modified: stable/10/lib/libc/gen/dlfcn.c ============================================================================== --- stable/10/lib/libc/gen/dlfcn.c Wed May 27 07:05:56 2015 (r283596) +++ stable/10/lib/libc/gen/dlfcn.c Wed May 27 08:23:23 2015 (r283597) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505270823.t4R8NNVV035165>