Author: kib
Date: Fri Mar 16 19:09:34 2012
New Revision: 233041
URL: http://svn.freebsd.org/changeset/base/233041

Log:
  Remove write-only variable.
  
  MFC after:    3 days

Modified:
  head/libexec/rtld-elf/map_object.c

Modified: head/libexec/rtld-elf/map_object.c
==============================================================================
--- head/libexec/rtld-elf/map_object.c  Fri Mar 16 17:56:53 2012        
(r233040)
+++ head/libexec/rtld-elf/map_object.c  Fri Mar 16 19:09:34 2012        
(r233041)
@@ -65,7 +65,6 @@ map_object(int fd, const char *path, con
     Elf_Phdr *phtls;
     caddr_t mapbase;
     size_t mapsize;
-    Elf_Off base_offset;
     Elf_Addr base_vaddr;
     Elf_Addr base_vlimit;
     caddr_t base_addr;
@@ -174,7 +173,6 @@ map_object(int fd, const char *path, con
      * Map the entire address space of the object, to stake out our
      * contiguous region, and to establish the base address for relocation.
      */
-    base_offset = trunc_page(segs[0]->p_offset);
     base_vaddr = trunc_page(segs[0]->p_vaddr);
     base_vlimit = round_page(segs[nsegs]->p_vaddr + segs[nsegs]->p_memsz);
     mapsize = base_vlimit - base_vaddr;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to