Changeset 1103 in MondoRescue for branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c
- Timestamp:
- Feb 6, 2007, 11:10:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c
r1087 r1103 76 76 /** int ****************************************************************/ 77 77 int i = 0; 78 int i ndex = 0;78 int idx = 0; 79 79 int currline = 0; 80 80 int items = 0; … … 109 109 log_it("I don't know what this button does"); 110 110 } else { 111 i ndex = find_next_free_index_in_disklist(disklist);111 idx = find_next_free_index_in_disklist(disklist); 112 112 113 113 items = disklist->entries; 114 114 strcpy(disklist->el[items].device, 115 115 unallocated_raid_partitions->el[currline].device); 116 disklist->el[items].index = i ndex;116 disklist->el[items].index = idx; 117 117 disklist->entries = ++items; 118 118 … … 1660 1660 mr_free(sz_parity_disks); 1661 1661 mr_free(sz_failed_disks); 1662 mr_free( bkp_raidrec);1662 mr_free((void*) bkp_raidrec); 1663 1663 #endif 1664 1664 } … … 2188 2188 2189 2189 /** int ***************************************************************/ 2190 int i ndex = -1;2190 int idx = -1; 2191 2191 int pos = 0; 2192 2192 … … 2198 2198 for (done = FALSE; !done;) { 2199 2199 for (pos = 0; 2200 pos < disklist->entries && disklist->el[pos].index <= i ndex;2200 pos < disklist->entries && disklist->el[pos].index <= idx; 2201 2201 pos++); 2202 2202 if (pos >= disklist->entries) { 2203 2203 done = TRUE; 2204 2204 } else { 2205 i ndex = disklist->el[pos].index;2206 } 2207 } 2208 return (i ndex + 1);2205 idx = disklist->el[pos].index; 2206 } 2207 } 2208 return (idx + 1); 2209 2209 } 2210 2210 … … 2389 2389 * Dummy function that proves that we can get to the point where Mondo is run. 2390 2390 */ 2391 void nuke_mode_dummy( )2391 void nuke_mode_dummy(void) 2392 2392 { 2393 2393 … … 2846 2846 mr_free(sz_res); 2847 2847 mr_free(header_text); 2848 mr_free( bkp_raidrec);2849 mr_free( bkp_disklist);2850 mr_free( bkp_raidlist);2851 mr_free( unallocated_raid_partitions);2848 mr_free((void*) bkp_raidrec); 2849 mr_free((void*) bkp_disklist); 2850 mr_free((void*) bkp_raidlist); 2851 mr_free((void*) unallocated_raid_partitions); 2852 2852 } 2853 2853 #endif
Note:
See TracChangeset
for help on using the changeset viewer.