Changeset 1103 in MondoRescue for branches/stable/mondo/src/mondorestore
- Timestamp:
- Feb 6, 2007, 11:10:01 AM (17 years ago)
- Location:
- branches/stable/mondo/src/mondorestore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-prep.c
r1080 r1103 2002 2002 system("clear"); 2003 2003 newtResume(); 2004 mr_free( drivelist);2004 mr_free((void*) drivelist); 2005 2005 return (retval); 2006 2006 } … … 2605 2605 } 2606 2606 log_to_screen("Mountlist adjusted to suit current hard drive(s)"); 2607 mr_free( drivelist);2607 mr_free((void*) drivelist); 2608 2608 } 2609 2609 -
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 -
branches/stable/mondo/src/mondorestore/mondo-rstr-newt.h
r1067 r1103 157 157 char *mountlist_entry_to_string(struct mountlist_itself *, int); 158 158 void mvaddstr_and_log_it(int, int, char *); 159 void nuke_mode_dummy( );159 void nuke_mode_dummy(void); 160 160 char *number_of_disks_as_string(int, char *); 161 161 void open_evalcall_form(char *); -
branches/stable/mondo/src/mondorestore/mondo-rstr-tools-EXT.h
r912 r1103 3 3 */ 4 4 5 extern void free_MR_global_filenames( );5 extern void free_MR_global_filenames(void); 6 6 extern void get_cfg_file_from_archive_or_bust(struct s_bkpinfo *); 7 7 extern bool is_file_in_list(char *, char *, char *); /* needle, haystack, preamble */ -
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r1102 r1103 53 53 * Free the malloc()s for the filename variables. 54 54 */ 55 void free_MR_global_filenames( )55 void free_MR_global_filenames(void) 56 56 { 57 57 mr_free(g_biggielist_txt); … … 556 556 } 557 557 run_program_and_log_output("df -m", 3); 558 mr_free( mountlist);558 mr_free((void*) mountlist); 559 559 mr_free(tmp); 560 560 mr_free(format); … … 2178 2178 log_to_screen("All partitions were unmounted OK."); 2179 2179 } 2180 mr_free( mountlist);2180 mr_free((void*) mountlist); 2181 2181 mr_free(command); 2182 2182 mr_free(tmp); … … 2557 2557 } 2558 2558 mr_free(screen_message); 2559 mr_free( raidlist);2560 } 2559 mr_free((void*) raidlist); 2560 } -
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.h
r1052 r1103 3 3 */ 4 4 5 void free_global_filenames( );5 void free_global_filenames(void); 6 6 void get_cfg_file_from_archive_or_bust(struct s_bkpinfo *); 7 7 bool is_file_in_list(char *, char *, char *); /* needle, haystack, preamble */
Note:
See TracChangeset
for help on using the changeset viewer.