From 257c7e21aa7bd086bbe96d028a902e93c1e79df2 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 20 Jul 2010 02:08:15 +0000 Subject: [PATCH] delete unused variable --- usr.sbin/crunchgen/elf_hide.c | 5 +---- 1 file changed, 1 insertion(+), 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; -- 2.20.1