Ignore:
Timestamp:
Sep 29, 2013, 9:31:34 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Finish with backports from 3.1 for now. Still some work to do, but we will now make that version compile and work again and serve as a base

so the gettext patch can be added

File:
1 edited

Legend:

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

    r3161 r3193  
    212212        mr_strip_spaces(size_str);
    213213
    214         strip_spaces(device_str);
     214        mr_strip_spaces(device_str);
    215215        if (b_res == bOK) {
    216216            if (device_str[strlen(device_str) - 1] == '/') {
     
    480480            mr_free(tmp);
    481481            mr_free(prompt);
    482             mr_free(prompt);
    483482            return;
    484483        }
     
    530529
    531530    assert(raidrec != NULL);
    532 
    533     if (system("grep Pers /proc/mdstat > /tmp/raid-personalities.txt 2> /dev/null")) {
    534         // FIXME
    535     }
     531    paranoid_system("grep Pers /proc/mdstat > /tmp/raid-personalities.txt 2> /dev/null");
    536532    personalities = last_line_of_file("/tmp/raid-personalities.txt");
    537533    mr_asprintf(prompt, "Please enter the RAID level you want. %s", personalities);
     
    583579    mr_free(tmp);
    584580    mr_free(prompt);
     581
    585582    raidrec->raid_level = out;
    586583#endif
     
    607604    int pos = 0;
    608605
    609     /** buffers ***********************************************************/
    610606    assert(mountlist != NULL);
    611607    assert(raidlist != NULL);
     
    931927                strcpy(g_strings_of_flist_window[i - 1], tmp1);
    932928                mr_free(tmp1);
     929
    933930                dummybool = g_is_path_selected[i];
    934931                g_is_path_selected[i] = g_is_path_selected[i - 1];
     
    16831680
    16841681    /** buffers ***********************************************************/
    1685     char title_of_editraidForm_window[MAX_STR_LEN];
     1682    char *title_of_editraidForm_window = NULL;
    16861683
    16871684    /** newt **************************************************************/
     
    17131710    memcpy((void *) &bkp_raidrec, (void *) raidrec,
    17141711           sizeof(struct vinum_plex));
    1715     sprintf(title_of_editraidForm_window, "%s.p%i",
    1716             raidlist->el[currline].volname, currline2);
     1712    mr_asprintf(title_of_editraidForm_window, "%s.p%i", raidlist->el[currline].volname, currline2);
    17171713    newtPushHelpLine
    17181714        ("   Please select a subdisk to edit, or edit this plex's parameters");
    17191715    newtOpenWindow(13, 3, 54, 18, title_of_editraidForm_window);
     1716    mr_free(title_of_editraidForm_window);
     1717
    17201718    for (;;) {
    17211719        int i;
     
    18881886        strcpy(raidrec->additional_vars.el[lino].value, p);
    18891887    }
     1888    mr_free(header);
     1889    mr_free(comment);
    18901890    mr_free(p);
    18911891}
     
    19531953    mr_asprintf(tmp, "%-24s %-24s %-8s  %s", "Device", "Mountpoint", "Format", "Size (MB)");
    19541954    headerMsg = newtLabel(2, 1, tmp);
     1955    mr_free(tmp);
     1956
    19551957    flawsLabelA = newtLabel(2, 13, "         ");
    19561958    flawsLabelB = newtLabel(2, 14, "         ");
     
    20442046    }
    20452047    newtFormDestroy(myForm);
    2046 
    2047     mr_free(flaws_str_A);
    2048     mr_free(flaws_str_B);
    2049     mr_free(flaws_str_C);
    2050     mr_free(tmp);
    2051 
    20522048    newtPopWindow();
    20532049    newtPopHelpLine();
     
    28292825                        disklist->el[currline].index = atoi(sz_res);
    28302826                    }
     2827
    28312828                    redraw_disklist(disklist, keylist, partitionsListbox);
    28322829                    mr_free(sz_res);
Note: See TracChangeset for help on using the changeset viewer.