[BusyBox-cvs] busybox/networking ifupdown.c,1.9,1.10

Glenn McGrath bug1 at busybox.net
Fri Dec 6 08:10:43 UTC 2002


Update of /var/cvs/busybox/networking
In directory winder:/tmp/cvs-serv26063/networking

Modified Files:
	ifupdown.c 
Log Message:
Fix bug that stoped -a working


Index: ifupdown.c
===================================================================
RCS file: /var/cvs/busybox/networking/ifupdown.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- ifupdown.c	26 Nov 2002 02:23:41 -0000	1.9
+++ ifupdown.c	6 Dec 2002 08:10:40 -0000	1.10
@@ -1405,12 +1405,14 @@
 			}
 		}
 		if (state_fp != NULL && !no_act) {
+			unsigned short j;
+
 			if (ftruncate(fileno(state_fp), 0) < 0) {
 				error_msg_and_die("failed to truncate statefile %s: %s", statefile, strerror(errno));
 			}
 
 			rewind(state_fp);
-			for (i = 0; i < n_state; i++) {
+			for (j = 0; j < n_state; j++) {
 				fputs(state[i], state_fp);
 				fputc('\n', state_fp);
 			}




More information about the busybox-cvs mailing list