Changeset 3838 in MondoRescue for branches


Ignore:
Timestamp:
Mar 5, 2024, 3:02:02 AM (4 months ago)
Author:
Bruno Cornec
Message:

Fix compiler errors

Location:
branches/3.3/mondo/src/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/common/libmondo-cli.c

    r3836 r3838  
    4646extern char *resolve_softlinks_to_get_to_actual_device_file(char *);
    4747extern char *mr_popup_and_get_string(char *, char *, char *);
     48extern char *call_program_and_get_last_line_of_output(const char *);
    4849
    4950extern t_boot mr_boot_type(void);
     
    717718    if (!flag_set['d'] && (flag_set['c'] || flag_set['w'] || flag_set['C'])) {
    718719        if (g_kernel_version >= 2.6) {
    719             tmp1 = mr_popup_and_get_string("Device", "Please specify the device",bkpinfo->media_device);
     720            tmp1 = mr_popup_and_get_string("Device", "Please specify the device", bkpinfo->media_device);
    720721            if (tmp1 == NULL) {
    721722                retval++;
  • branches/3.3/mondo/src/common/libmondo-devices.c

    r3836 r3838  
    5454extern void setup_scratchdir(char *path);
    5555extern char *mr_popup_and_get_string(char *title, char *b, char *input);
     56extern char *call_program_and_get_last_line_of_output(const char *);
    5657
    5758static char g_cdrw_drive_is_here[MAX_STR_LEN / 4] = "";
     
    13541355        log_msg(2, "Mounting for Network thingy");
    13551356        log_msg(2, "isodir = %s", bkpinfo->isodir);
    1356         if ((bkpinfo->isodir == NULL) || !strcmp(bkpinfo->isodir, "/"))) && am_I_in_disaster_recovery_mode()) {
     1357        if (((bkpinfo->isodir == NULL) || !strcmp(bkpinfo->isodir, "/")) && am_I_in_disaster_recovery_mode()) {
    13571358            mr_asprintf(bkpinfo->isodir, "%s", "/tmp/isodir");
    13581359            log_msg(1, "isodir is being set to %s", bkpinfo->isodir);
     
    26232624        bkpinfo->netfs_remote_dir = mr_strip_spaces(tmp1);
    26242625
    2625         tmp = popup_and_get_string("Prefix.", "Please enter the prefix that will be prepended to your ISO filename.  Example: machine1 to obtain machine1-[1-9]*.iso files", bkpinfo->prefix);
     2626        tmp = mr_popup_and_get_string("Prefix.", "Please enter the prefix that will be prepended to your ISO filename.  Example: machine1 to obtain machine1-[1-9]*.iso files", bkpinfo->prefix);
    26262627        if (tmp == NULL) {
    26272628            log_to_screen("User has chosen not to backup the machine");
     
    26642665            }
    26652666        }
    2666         tmp = popup_and_get_string("Prefix.", "Please enter the prefix that will be prepended to your ISO filename.  Example: machine1 to obtain machine1-[1-9]*.iso files", bkpinfo->prefix);
     2667        tmp = mr_popup_and_get_string("Prefix.", "Please enter the prefix that will be prepended to your ISO filename.  Example: machine1 to obtain machine1-[1-9]*.iso files", bkpinfo->prefix);
    26672668        if (tmp == NULL) {
    26682669            log_to_screen("User has chosen not to backup the machine");
  • branches/3.3/mondo/src/common/mondostructures.h

    r3834 r3838  
    467467   * If backup_media_type is anything else, this is ignored.
    468468   */
    469     char isodir[MAX_STR_LEN / 4];
     469    char *isodir;
    470470
    471471/**
     
    474474   * If backup_media_type is anything else, this is ignored.
    475475   */
    476     char prefix[MAX_STR_LEN / 4];
     476    char *prefix;
    477477
    478478  /**
Note: See TracChangeset for help on using the changeset viewer.