Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/libelf/dist remove some set-but unused variables.
details: https://anonhg.NetBSD.org/src/rev/72fa788e4c35
branches: trunk
changeset: 790604:72fa788e4c35
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Oct 18 08:04:47 2013 +0000
description:
remove some set-but unused variables.
diffstat:
external/bsd/libelf/dist/elf_update.c | 6 ++----
external/bsd/libelf/dist/libelf_phdr.c | 6 ++----
2 files changed, 4 insertions(+), 8 deletions(-)
diffs (63 lines):
diff -r a53ad5cc1338 -r 72fa788e4c35 external/bsd/libelf/dist/elf_update.c
--- a/external/bsd/libelf/dist/elf_update.c Fri Oct 18 08:03:48 2013 +0000
+++ b/external/bsd/libelf/dist/elf_update.c Fri Oct 18 08:04:47 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elf_update.c,v 1.4 2010/02/22 10:48:32 darran Exp $ */
+/* $NetBSD: elf_update.c,v 1.5 2013/10/18 08:04:47 mrg Exp $ */
/*-
* Copyright (c) 2006-2008 Joseph Koshy
@@ -357,7 +357,7 @@
static off_t
_libelf_resync_elf(Elf *e)
{
- int ec, eh_class, eh_type;
+ int ec, eh_class;
unsigned int eh_byteorder, eh_version;
size_t align, fsz;
size_t phnum, shnum;
@@ -386,14 +386,12 @@
eh_class = eh32->e_ident[EI_CLASS];
phoff = (uint64_t) eh32->e_phoff;
shoff = (uint64_t) eh32->e_shoff;
- eh_type = eh32->e_type;
eh_version = eh32->e_version;
} else {
eh_byteorder = eh64->e_ident[EI_DATA];
eh_class = eh64->e_ident[EI_CLASS];
phoff = eh64->e_phoff;
shoff = eh64->e_shoff;
- eh_type = eh64->e_type;
eh_version = eh64->e_version;
}
diff -r a53ad5cc1338 -r 72fa788e4c35 external/bsd/libelf/dist/libelf_phdr.c
--- a/external/bsd/libelf/dist/libelf_phdr.c Fri Oct 18 08:03:48 2013 +0000
+++ b/external/bsd/libelf/dist/libelf_phdr.c Fri Oct 18 08:04:47 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libelf_phdr.c,v 1.4 2010/02/22 10:48:33 darran Exp $ */
+/* $NetBSD: libelf_phdr.c,v 1.5 2013/10/18 08:04:47 mrg Exp $ */
/*-
* Copyright (c) 2006 Joseph Koshy
@@ -45,7 +45,7 @@
void *
_libelf_getphdr(Elf *e, int ec)
{
- size_t phnum, phentsize;
+ size_t phnum;
size_t fsz, msz;
uint64_t phoff;
Elf32_Ehdr *eh32;
@@ -76,11 +76,9 @@
if (ec == ELFCLASS32) {
eh32 = (Elf32_Ehdr *) ehdr;
- phentsize = eh32->e_phentsize;
phoff = (uint64_t) eh32->e_phoff;
} else {
eh64 = (Elf64_Ehdr *) ehdr;
- phentsize = eh64->e_phentsize;
phoff = (uint64_t) eh64->e_phoff;
}
Home |
Main Index |
Thread Index |
Old Index