Ignore:
Timestamp:
Sep 24, 2009, 3:50:38 PM (11 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/mondoarchive/mondoarchive.c

    r2413 r2421  
    1010#include "my-stuff.h"
    1111#include "mr_mem.h"
     12#include "mr_str.h"
    1213#include "../common/mondostructures.h"
    1314#include "../common/libmondo.h"
     
    161162    printf("Initializing...\n");
    162163
    163     init_bkpinfo();
    164 
    165164    /* initialize log file with time stamp */
    166165    unlink(MONDO_LOGFILE);
    167     log_msg(0, "Time started: %s", mr_date());
     166    tmp = mr_date();
     167    log_msg(0, "Time started: %s", tmp);
     168    mr_free(tmp);
     169
     170    init_bkpinfo();
    168171
    169172    /* Memory allocation is done in those functions */
     
    416419
    417420    /* finalize log file with time stamp */
    418     log_msg(0, "Time finished: %s", mr_date());
     421    tmp = mr_date();
     422    log_msg(0, "Time finished: %s", tmp);
     423    mr_free(tmp);
    419424
    420425    chdir("/tmp");
Note: See TracChangeset for help on using the changeset viewer.