diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-20 02:08:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-20 02:08:16 +0000 |
commit | 89a71c695186ff569709cd84e4fd3d55bb39afce (patch) | |
tree | d02bc2e53ffeb9d985d1c6c20df3c49aefe83dcc | |
parent | 2634c1a8a74a628a7c2bc2b743f6b2498f9d3792 (diff) |
delete unused variable
-rw-r--r-- | usr.sbin/crunchgen/elf_hide.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/crunchgen/elf_hide.c b/usr.sbin/crunchgen/elf_hide.c index 472ef324c74..75dddb89f34 100644 --- a/usr.sbin/crunchgen/elf_hide.c +++ b/usr.sbin/crunchgen/elf_hide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elf_hide.c,v 1.5 2009/12/04 04:59:48 drahn Exp $ */ +/* $OpenBSD: elf_hide.c,v 1.6 2010/07/20 02:08:15 deraadt Exp $ */ /* * Copyright (c) 1997 Dale Rahn. @@ -74,7 +74,6 @@ elf_hide(int pfile, char *p) Elf_Phdr *pphdr; int i; #endif - struct stat sb; pexe = p; pehdr = (Elf_Ehdr *) pexe; @@ -147,8 +146,6 @@ elf_hide(int pfile, char *p) load_strtab(pehdr, pexe); load_symtab(pehdr, pexe); - - munmap(pexe, sb.st_size); close(pfile); } char *shstrtab; |