summaryrefslogtreecommitdiff
path: root/usr.bin/nm
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-01-13 17:32:33 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-01-13 17:32:33 +0000
commit1249347f01881acbeadeedd30e9b439c8eca1718 (patch)
treeb49894e25ca82aee1b1f6b34e643e051a671f213 /usr.bin/nm
parent0054b3917d71ca53862d0948ed0ea41f6bc85ce5 (diff)
kill unused local vars; from deraadt@
Diffstat (limited to 'usr.bin/nm')
-rw-r--r--usr.bin/nm/elf.c3
-rw-r--r--usr.bin/nm/nm.c6
2 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/nm/elf.c b/usr.bin/nm/elf.c
index da99cf0513c..9d62a5ff158 100644
--- a/usr.bin/nm/elf.c
+++ b/usr.bin/nm/elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elf.c,v 1.1 2004/01/05 01:27:22 mickey Exp $ */
+/* $OpenBSD: elf.c,v 1.2 2004/01/13 17:32:32 mickey Exp $ */
/*
* Copyright (c) 2003 Michael Shalayeff
@@ -148,7 +148,6 @@ int
elf2nlist(Elf_Sym *sym, Elf_Ehdr *eh, Elf_Shdr *shdr, char *shstr, struct nlist *np)
{
/* extern char *stab; */
- unsigned char n_type;
const char *sn;
if (sym->st_shndx < eh->e_shnum)
diff --git a/usr.bin/nm/nm.c b/usr.bin/nm/nm.c
index 78ffb7d1ece..9b5644f8d39 100644
--- a/usr.bin/nm/nm.c
+++ b/usr.bin/nm/nm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nm.c,v 1.20 2004/01/05 01:27:22 mickey Exp $ */
+/* $OpenBSD: nm.c,v 1.21 2004/01/13 17:32:32 mickey Exp $ */
/* $NetBSD: nm.c,v 1.7 1996/01/14 23:04:03 pk Exp $ */
/*
@@ -42,7 +42,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)nm.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] = "$OpenBSD: nm.c,v 1.20 2004/01/05 01:27:22 mickey Exp $";
+static const char rcsid[] = "$OpenBSD: nm.c,v 1.21 2004/01/13 17:32:32 mickey Exp $";
#include <sys/param.h>
#include <sys/mman.h>
@@ -836,7 +836,7 @@ show_file(int count, int warn_fmt, const char *name, FILE *fp, off_t foff, union
int
elf_symload(const char *name, FILE *fp, off_t foff, Elf_Ehdr *eh, Elf_Shdr *shdr)
{
- long symsize, shstrsize, nlistsize;
+ long symsize, shstrsize;
struct nlist *np;
Elf_Sym sbuf;
char *shstr;