Ignore:
Timestamp:
Sep 24, 2009, 3:50:38 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Remove some compiler warnings on main
  • Adds function mr_chomp and mr_strip_char and use them in mr_date and call_program_and_get_last_line_of_output
  • Fix call_program_and_get_last_line_of_output to return the right result using a temp file instead of popen
  • Fix an issue in mr_getline_int in case of eof (returns now an empty string)
  • Sequencing of Init of bkpinfo reviewed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-archive.c

    r2420 r2421  
    993993        if (!does_file_exist(archiving_filelist_fname)) {
    994994            log_msg(3, "[%d:%d] - well, I would archive %d, except that it doesn't exist. I'll stop now.", getpid(), this_thread_no, archiving_set_no);
     995            mr_free(archiving_afioball_fname);
    995996            break;
    996997        }
     
    12911292    malloc_string(result_str);
    12921293    transfer_block = malloc(sizeof(struct s_bkpinfo) + BKPINFO_LOC_OFFSET + 64);
    1293     memset((void *) transfer_block, 0,
    1294            sizeof(struct s_bkpinfo) + BKPINFO_LOC_OFFSET + 64);
     1294    memset((void *) transfer_block, 0, sizeof(struct s_bkpinfo) + BKPINFO_LOC_OFFSET + 64);
    12951295    p_last_set_archived = (int *) transfer_block;
    12961296    p_archival_threads_running = (int *) (transfer_block + 4);
    12971297    p_next_set_to_archive = (int *) (transfer_block + 8);
    12981298    p_list_of_fileset_flags = (char *) (transfer_block + 12);
    1299     memcpy((void *) (transfer_block + BKPINFO_LOC_OFFSET),
    1300            (void *) bkpinfo, sizeof(struct s_bkpinfo));
     1299    memcpy((void *) (transfer_block + BKPINFO_LOC_OFFSET), (void *) bkpinfo, sizeof(struct s_bkpinfo));
    13011300    pvp = &vp;
    13021301    vp = (void *) result_str;
     
    13101309                       "Please wait. This may take a couple of hours.",
    13111310                       "Working...",
    1312                        get_last_filelist_number() + 1);
     1311                       (long)get_last_filelist_number() + 1L);
    13131312
    13141313    log_msg(5, "We're gonna party like it's your birthday.");
Note: See TracChangeset for help on using the changeset viewer.