svn commit: r283597 - stable/10/lib/libc/gen

Konstantin Belousov kib at FreeBSD.org
Wed May 27 08:23:24 UTC 2015


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;


More information about the svn-src-stable mailing list