Index: trunk/src_plugins/io_kicad_legacy/write.c =================================================================== --- trunk/src_plugins/io_kicad_legacy/write.c (revision 9688) +++ trunk/src_plugins/io_kicad_legacy/write.c (revision 9689) @@ -210,7 +210,7 @@ currentGroup = 0; /* figure out which pcb layers are bottom copper and make a list */ - bottomCount = pcb_layer_list(PCB_LYT_BOTTOM | PCB_LYT_COPPER, NULL, 0); + bottomCount = pcb_layer_list(PCB_LYT_BOTTOM | PCB_LYT_COPPER, NULL, 0); if (bottomCount > 0 ) { bottomLayers = malloc(sizeof(pcb_layer_id_t) * bottomCount); pcb_layer_list(PCB_LYT_BOTTOM | PCB_LYT_COPPER, bottomLayers, bottomCount); @@ -219,7 +219,7 @@ } /* figure out which pcb layers are internal copper layers and make a list */ - innerCount = pcb_layer_list(PCB_LYT_INTERN | PCB_LYT_COPPER, NULL, 0); + innerCount = pcb_layer_list(PCB_LYT_INTERN | PCB_LYT_COPPER, NULL, 0); if (innerCount > 0 ) { innerLayers = malloc(sizeof(pcb_layer_id_t) * innerCount); pcb_layer_list(PCB_LYT_INTERN | PCB_LYT_COPPER, innerLayers, innerCount); @@ -228,7 +228,7 @@ } /* figure out which pcb layers are top copper and make a list */ - topCount = pcb_layer_list(PCB_LYT_TOP | PCB_LYT_COPPER, NULL, 0); + topCount = pcb_layer_list(PCB_LYT_TOP | PCB_LYT_COPPER, NULL, 0); if (topCount > 0 ) { topLayers = malloc(sizeof(pcb_layer_id_t) * topCount); pcb_layer_list(PCB_LYT_TOP | PCB_LYT_COPPER, topLayers, topCount); @@ -237,7 +237,7 @@ } /* figure out which pcb layers are bottom silk and make a list */ - bottomSilkCount = pcb_layer_list(PCB_LYT_BOTTOM | PCB_LYT_SILK, NULL, 0); + bottomSilkCount = pcb_layer_list(PCB_LYT_BOTTOM | PCB_LYT_SILK, NULL, 0); if (bottomSilkCount > 0 ) { bottomSilk = malloc(sizeof(pcb_layer_id_t) * bottomSilkCount); pcb_layer_list(PCB_LYT_BOTTOM | PCB_LYT_SILK, bottomSilk, bottomSilkCount); @@ -257,7 +257,7 @@ /* figure out which pcb layers are outlines and make a list */ outlineCount = pcb_layer_list(PCB_LYT_OUTLINE, NULL, 0); if (outlineCount > 0) { - outlineLayers = malloc(sizeof(pcb_layer_id_t) * outlineCount); + outlineLayers = malloc(sizeof(pcb_layer_id_t) * outlineCount); pcb_layer_list(PCB_LYT_OUTLINE, outlineLayers, outlineCount); } else { outlineLayers = NULL; @@ -409,7 +409,7 @@ /* * now we proceed to write polygons for each layer, and iterate much like we did for tracks - */ + */ /* we now proceed to write the bottom silk polygons to the kicad legacy file, using layer 20 */ currentKicadLayer = 20; /* 20 is the bottom silk layer in kicad */ @@ -982,7 +982,7 @@ int write_kicad_legacy_equipotential_netlists(FILE * FP, pcb_board_t *Layout) { - int n; /* code mostly lifted from netlist.c */ + int n; /* code mostly lifted from netlist.c */ int netNumber; pcb_lib_menu_t *menu; pcb_lib_entry_t *netlist; @@ -994,8 +994,8 @@ fputs("$EndEQUIPOT\n",FP); /* now we step through any available netlists and generate descriptors */ - for (n = 0, netNumber = 1; n < Layout->NetlistLib[PCB_NETLIST_EDITED].MenuN; n++, netNumber ++) { - menu = &Layout->NetlistLib[PCB_NETLIST_EDITED].Menu[n]; + for (n = 0, netNumber = 1; n < Layout->NetlistLib[PCB_NETLIST_EDITED].MenuN; n++, netNumber ++) { + menu = &Layout->NetlistLib[PCB_NETLIST_EDITED].Menu[n]; netlist = &menu->Entry[0]; if (netlist != NULL) { fputs("$EQUIPOT\n",FP); @@ -1002,8 +1002,8 @@ fprintf(FP, "Na %d \"%s\"\n", netNumber, pcb_netlist_name(menu)); /* netlist 0 was used for unconnected pads */ fputs("St ~\n", FP); fputs("$EndEQUIPOT\n",FP); - } - } + } + } return 0; }