remove unused variable

This commit is contained in:
christos 2013-11-08 01:10:23 +00:00
parent a79812ea10
commit 553f814b0d
1 changed files with 2 additions and 3 deletions

View File

@ -35,7 +35,7 @@
__FBSDID("$FreeBSD: src/usr.sbin/ndiscvt/ndiscvt.c,v 1.9.2.2 2005/02/23 16:31:47 wpaul Exp $");
#endif
#ifdef __NetBSD__
__RCSID("$NetBSD: ndiscvt.c,v 1.10 2011/11/25 13:18:22 joerg Exp $");
__RCSID("$NetBSD: ndiscvt.c,v 1.11 2013/11/08 01:10:23 christos Exp $");
#endif
@ -110,7 +110,7 @@ int insert_padding(imgbase, imglen)
image_dos_header *dos_hdr;
image_nt_header *nt_hdr;
image_optional_header opt_hdr;
int i = 0, sections, curlen = 0;
int i = 0, sections;
int offaccum = 0, oldraddr, oldrlen;
uint8_t *newimg, *tmp;
@ -120,7 +120,6 @@ int insert_padding(imgbase, imglen)
return(ENOMEM);
bcopy(*imgbase, newimg, *imglen);
curlen = *imglen;
if (pe_get_optional_header((vm_offset_t)newimg, &opt_hdr))
return(0);