Module Name:    src
Committed By:   martin
Date:           Fri Oct 25 14:46:35 UTC 2013

Modified Files:
        src/sys/compat/ibcs2: ibcs2_exec_coff.c

Log Message:
Remove a variable


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/compat/ibcs2/ibcs2_exec_coff.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/ibcs2/ibcs2_exec_coff.c
diff -u src/sys/compat/ibcs2/ibcs2_exec_coff.c:1.25 src/sys/compat/ibcs2/ibcs2_exec_coff.c:1.26
--- src/sys/compat/ibcs2/ibcs2_exec_coff.c:1.25	Thu Jul 22 03:19:02 2010
+++ src/sys/compat/ibcs2/ibcs2_exec_coff.c	Fri Oct 25 14:46:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ibcs2_exec_coff.c,v 1.25 2010/07/22 03:19:02 christos Exp $	*/
+/*	$NetBSD: ibcs2_exec_coff.c,v 1.26 2013/10/25 14:46:35 martin Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995, 1998 Scott Bartram
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_coff.c,v 1.25 2010/07/22 03:19:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_coff.c,v 1.26 2013/10/25 14:46:35 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -431,7 +431,7 @@ exec_ibcs2_coff_prep_zmagic(struct lwp *
 		size_t resid;
 		struct coff_slhdr *slhdr;
 		char *tbuf, *bufp;
-		size_t len = sh.s_size, path_index, entry_len;
+		size_t len = sh.s_size, /* path_index, */ entry_len;
 
 		if (len > 64 * 1024)
 			return ENOEXEC;
@@ -462,7 +462,7 @@ exec_ibcs2_coff_prep_zmagic(struct lwp *
 				return ENOEXEC;
 			}
 
-			path_index = slhdr->path_index * sizeof(long);
+			/* path_index = slhdr->path_index * sizeof(long); */
 			entry_len = slhdr->entry_len * sizeof(long);
 
 			if (entry_len > len) {

Reply via email to