Ignore:
Timestamp:
Mar 4, 2024, 5:47:08 PM (2 months ago)
Author:
Bruno Cornec
Message:

Fix compilation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/mondorestore/mondorestore.c

    r3830 r3831  
    2323
    2424extern void wait_until_software_raids_are_prepped(char *, int);
     25extern char *mr_popup_and_get_string(char *, char *, char *);
    2526
    2627extern void twenty_seconds_til_yikes(void);
     
    19911992                gotos_suck:
    19921993                // (NB: MNT_RESTORING is where your filesystem is mounted now, by default)
    1993                 tmp = mr_popup_and_get_string("Restore path", "Restore files to where?", old_restpath);
    1994                 if (tmp != NULL) {
    1995                     if (!strcmp(tmp, "/")) {
     1994                tmp1 = mr_popup_and_get_string("Restore path", "Restore files to where?", old_restpath);
     1995                if (tmp1 != NULL) {
     1996                    if (!strcmp(tmp1, "/")) {
    19961997                        if (!ask_me_yes_or_no("Are you sure?")) {
    1997                             mr_free(tmp);
     1998                            mr_free(tmp1);
    19981999                            goto gotos_suck;
    19992000                        }
    2000                         mr_asprintf(tmp, "%s", ""); // so we restore to [blank]/file/name :)
     2001                        mr_free(tmp1);
     2002                        mr_asprintf(tmp1, "%s", "");    // so we restore to [blank]/file/name :)
    20012003                    }
    2002                     mr_asprintf(bkpinfo->restore_path, "%s", tmp);
     2004                    mr_asprintf(bkpinfo->restore_path, "%s", tmp1);
    20032005                    log_msg(1, "Restoring subset");
    20042006                    retval += restore_everything(filelist);
     
    20072009                    mr_asprintf(bkpinfo->restore_path, "%s", old_restpath);
    20082010                }
     2011                mr_free(tmp1);
    20092012                free_filelist(filelist);
    20102013                if (!ask_me_yes_or_no("Restore another subset of your backup?")) {
     
    20642067                            "Warning - errors occurred during the restore phase.");
    20652068    }
    2066   end_of_func:
    20672069    log_it("Leaving interactive_mode()");
    20682070    return (retval);
Note: See TracChangeset for help on using the changeset viewer.