Changeset 2394 in MondoRescue for branches/2.2.9/mondo/src/mondorestore


Ignore:
Timestamp:
Sep 12, 2009, 2:53:02 AM (15 years ago)
Author:
Bruno Cornec
Message:

Fix interface of evaluate_mountlist (remove 2nd param useless) and fix nuke mode which wasn't working.

Location:
branches/2.2.9/mondo/src/mondorestore
Files:
4 edited

Legend:

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

    r2380 r2394  
    19331933    /** int **************************************************************/
    19341934    int i = 0;
    1935     int res = 0;
    19361935    int currline = 0;
    19371936    int finished = FALSE;
     
    19751974                          bEdit, bDelete, bReload, bCancel, bOK, NULL);
    19761975    while (!finished) {
    1977         flaws_str = evaluate_mountlist(mountlist, &res);
     1976        flaws_str = evaluate_mountlist(mountlist);
    19781977        if (strlen(flaws_str) > 0) {
    19791978            mr_asprintf(&flaws_str_A, "%s", flaws_str + 1);
     
    20062005
    20072006        if (b_res == bOK) {
    2008             flaws_str = evaluate_mountlist(mountlist, &res);
    2009             mr_free(flaws_str);
    2010             if (!res) {
     2007            flaws_str = evaluate_mountlist(mountlist);
     2008            if (flaws_str != NULL) {
     2009                mr_free(flaws_str);
    20112010                finished =
    20122011                    ask_me_yes_or_no
  • branches/2.2.9/mondo/src/mondorestore/mondo-rstr-newt.h

    r2384 r2394  
    137137                   struct raidlist_itself *);
    138138void edit_raidrec_additional_vars(struct raid_device_record *);
    139 char *evaluate_mountlist(struct mountlist_itself *, int *);
     139char *evaluate_mountlist(struct mountlist_itself *);
    140140int find_device_in_mountlist(struct mountlist_itself *, char *);
    141141int find_next_free_index_in_disklist(struct list_of_disks *);
  • branches/2.2.9/mondo/src/mondorestore/mondorestore.c

    r2381 r2394  
    793793        resize_mountlist_proportionately_to_suit_new_drives(mountlist);
    794794    }
    795     flaws_str = evaluate_mountlist(mountlist, &res);
    796     if (!res) {
     795    flaws_str = evaluate_mountlist(mountlist);
     796    if (flaws_str != NULL) {
    797797        sprintf(tmp,
    798798                "Mountlist analyzed. Result: \"%s\" Switch to Interactive Mode?",
     
    806806        }
    807807    }
    808     mr_free(flaws_str);
    809808
    810809    save_mountlist_to_disk(mountlist, g_mountlist_fname);
  • branches/2.2.9/mondo/src/mondorestore/mr-externs.h

    r2380 r2394  
    109109extern bool g_restoring_live_from_netfs;
    110110extern int fput_string_one_char_at_a_time(FILE *, char *);
    111 extern char *evaluate_mountlist(struct mountlist_itself *mountlist, int *res);
     111extern char *evaluate_mountlist(struct mountlist_itself *mountlist);
    112112
    113113
Note: See TracChangeset for help on using the changeset viewer.