Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ndiscvt remove unused variable
details: https://anonhg.NetBSD.org/src/rev/cdf49b6031f2
branches: trunk
changeset: 791193:cdf49b6031f2
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 08 01:10:23 2013 +0000
description:
remove unused variable
diffstat:
usr.sbin/ndiscvt/ndiscvt.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 634440aafc1a -r cdf49b6031f2 usr.sbin/ndiscvt/ndiscvt.c
--- a/usr.sbin/ndiscvt/ndiscvt.c Fri Nov 08 00:38:26 2013 +0000
+++ b/usr.sbin/ndiscvt/ndiscvt.c Fri Nov 08 01:10:23 2013 +0000
@@ -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 @@
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 @@
return(ENOMEM);
bcopy(*imgbase, newimg, *imglen);
- curlen = *imglen;
if (pe_get_optional_header((vm_offset_t)newimg, &opt_hdr))
return(0);
Home |
Main Index |
Thread Index |
Old Index