Ignore:
Timestamp:
Nov 10, 2012, 5:05:37 AM (11 years ago)
Author:
Bruno Cornec
Message:

r5035@localhost: bruno | 2012-11-09 03:17:01 +0100

  • Fix a compilation error and most compilation warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/mondorestore/mondo-rstr-newt.c

    r2879 r3060  
    136136    /** int **************************************************************/
    137137    int i = 0;
    138     int num_to_add = 0;
    139138
    140139    /** newt *************************************************************/
     
    231230    strcpy(drive_to_add, device_str);
    232231    for (i = strlen(drive_to_add); isdigit(drive_to_add[i - 1]); i--);
    233     num_to_add = atoi(drive_to_add + i);
    234232    drive_to_add[i] = '\0';
    235233    currline = mountlist->entries;
     
    525523
    526524    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");
    529526    strcpy(personalities,
    530527           last_line_of_file("/tmp/raid-personalities.txt"));
     
    24182415    newtComponent b2;
    24192416    newtComponent b3;
    2420     newtComponent b_res;
    24212417
    24222418
     
    24292425    myForm = newtForm(NULL, NULL, 0);
    24302426    newtFormAddComponents(myForm, b1, b2, b3, NULL);
    2431     b_res = newtRunForm(myForm);
    24322427    newtFormDestroy(myForm);
    24332428    newtPopWindow();
     
    29112906            printf
    29122907                ("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            }
    29142911        }
    29152912        return (output);
Note: See TracChangeset for help on using the changeset viewer.