Changeset 3060 in MondoRescue for branches/3.0/mondo/src/mondorestore/mondo-rstr-newt.c
- Timestamp:
- Nov 10, 2012, 5:05:37 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/mondorestore/mondo-rstr-newt.c
r2879 r3060 136 136 /** int **************************************************************/ 137 137 int i = 0; 138 int num_to_add = 0;139 138 140 139 /** newt *************************************************************/ … … 231 230 strcpy(drive_to_add, device_str); 232 231 for (i = strlen(drive_to_add); isdigit(drive_to_add[i - 1]); i--); 233 num_to_add = atoi(drive_to_add + i);234 232 drive_to_add[i] = '\0'; 235 233 currline = mountlist->entries; … … 525 523 526 524 assert(raidrec != NULL); 527 system 528 ("grep Pers /proc/mdstat > /tmp/raid-personalities.txt 2> /dev/null"); 525 paranoid_system("grep Pers /proc/mdstat > /tmp/raid-personalities.txt 2> /dev/null"); 529 526 strcpy(personalities, 530 527 last_line_of_file("/tmp/raid-personalities.txt")); … … 2418 2415 newtComponent b2; 2419 2416 newtComponent b3; 2420 newtComponent b_res;2421 2417 2422 2418 … … 2429 2425 myForm = newtForm(NULL, NULL, 0); 2430 2426 newtFormAddComponents(myForm, b1, b2, b3, NULL); 2431 b_res = newtRunForm(myForm);2432 2427 newtFormDestroy(myForm); 2433 2428 newtPopWindow(); … … 2911 2906 printf 2912 2907 ("Which mode - (A)utomatic, (I)nteractive, \n(C)ompare only, or (E)xit to shell?\n--> "); 2913 fgets(tmp, MAX_STR_LEN - 1, stdin); 2908 if (fgets(tmp, MAX_STR_LEN - 1, stdin)) { 2909 // FIXME 2910 } 2914 2911 } 2915 2912 return (output);
Note:
See TracChangeset
for help on using the changeset viewer.