Ignore:
Timestamp:
Sep 29, 2013, 7:27:11 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • Fix all compilation/link error due to the previous giant merge with 3.1. 3.2 is ready to test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-tools.c

    r3191 r3194  
    3434extern int g_current_media_number;
    3535extern char *MONDO_LOGFILE;
    36 extern char *g_serial_string;
    3736
    3837/* Reference to global bkpinfo */
     
    6160 * The serial string (used to differentiate between backups) of the current backup.
    6261 */
    63 char *g_serial_string = NULL;
     62extern char *g_serial_string;
    6463
    6564/**
     
    359358    char *cdr_exe = NULL;
    360359    char *tmp = NULL;
    361     char *p = NULL;
    362360    char *call_before_iso_user = NULL;
    363361    char *iso_dev = NULL;
     
    633631                mr_asprintf(ip_address, "%s", inet_ntoa((struct in_addr) *((struct in_addr *) hent->h_addr)));
    634632                mr_strcat(ip_address, strchr(bkpinfo->netfs_mount, ':'));
    635                 strcpy(bkpinfo->netfs_mount, ip_address);
    636                 mr_free(ip_address);
     633                mr_free(bkpinfo->netfs_mount);
     634                bkpinfo->netfs_mount = ip_address;
    637635            }
    638636        }
     
    801799void reset_bkpinfo()
    802800{
    803     int i;
    804801    log_msg(1, "Initializing bkpinfo");
    805802
     
    824821    bkpinfo->internal_tape_block_size = DEFAULT_INTERNAL_TAPE_BLOCK_SIZE;
    825822   
    826 /*  We need tmpdir as early as possible for further function calls */
    827     bkpinfo->tmpdir = NULL;         // Really setup after
     823    /*  We need tmpdir as early as possible for further function calls */
     824    bkpinfo->tmpdir[0]= '\0';           // Really setup after
     825    bkpinfo->scratchdir[0]= '\0';           // Really setup after
    828826    setup_tmpdir(NULL);
    829827    setup_scratchdir(NULL);
     
    848846    bkpinfo->call_after_iso[0] = '\0';
    849847    bkpinfo->kernel_path[0] = '\0';
    850     bkpinfo->netfs_mount[0] = '\0';
     848    bkpinfo->netfs_mount = NULL;
    851849    bkpinfo->netfs_proto = NULL;
    852850    bkpinfo->netfs_user = NULL;
    853     bkpinfo->netfs_remote_dir[0] = '\0';
     851    bkpinfo->netfs_remote_dir = NULL;
    854852    bkpinfo->postnuke_tarball[0] = '\0';
    855853    bkpinfo->subdir = NULL;
     
    13651363 * Function pointer to the @c log_debug_msg function to use. Points to standard_log_debug_msg() by default.
    13661364 */
    1367 void (*log_debug_msg) (int, const char *, const char *, int, const char *,
    1368                        ...) = standard_log_debug_msg;
     1365void (*log_debug_msg) (int, const char *, const char *, int, const char *, ...) = standard_log_debug_msg;
    13691366
    13701367
Note: See TracChangeset for help on using the changeset viewer.