[Frugalware-darcs] frugalwareutils: libfwnetconfig.c: fixed an endless loop while saving dhcp interfaces.

Priyank priyank at frugalware.org
Tue Jun 26 10:49:44 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=frugalwareutils;a=darcs_commitdiff;h=20070626084532-5ce2c-eea0cb3d50f8384433b98b94edc2242a08cef4e4.gz;

[libfwnetconfig.c: fixed an endless loop while saving dhcp interfaces.
Priyank <priyank at frugalware.org>**20070626084532] {
hunk ./libfwnetconfig/libfwnetconfig.c 704
-		for(i=0;i<g_list_length(iface->pre_ups);i++)
+		for(j=0;j<g_list_length(iface->pre_ups);j++)
hunk ./libfwnetconfig/libfwnetconfig.c 706
-			char *command = (char*)g_list_nth_data(iface->pre_ups, i);
+			char *command = (char*)g_list_nth_data(iface->pre_ups, j);
hunk ./libfwnetconfig/libfwnetconfig.c 710
-		for(i=0;i<g_list_length(iface->pre_downs);i++)
+		for(j=0;j<g_list_length(iface->pre_downs);j++)
hunk ./libfwnetconfig/libfwnetconfig.c 712
-			char *command = (char*)g_list_nth_data(iface->pre_downs, i);
+			char *command = (char*)g_list_nth_data(iface->pre_downs, j);
hunk ./libfwnetconfig/libfwnetconfig.c 716
-		for(i=0;i<g_list_length(iface->post_ups);i++)
+		for(j=0;j<g_list_length(iface->post_ups);j++)
hunk ./libfwnetconfig/libfwnetconfig.c 718
-			char *command = (char*)g_list_nth_data(iface->post_ups, i);
+			char *command = (char*)g_list_nth_data(iface->post_ups, j);
hunk ./libfwnetconfig/libfwnetconfig.c 722
-		for(i=0;i<g_list_length(iface->post_downs);i++)
+		for(j=0;j<g_list_length(iface->post_downs);j++)
hunk ./libfwnetconfig/libfwnetconfig.c 724
-			char *command = (char*)g_list_nth_data(iface->post_downs, i);
+			char *command = (char*)g_list_nth_data(iface->post_downs, j);
}


More information about the Frugalware-darcs mailing list