Changeset 2421 in MondoRescue for branches/2.2.10/mondo/test/test-msg.c


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/test/test-msg.c

    r2310 r2421  
    2424    int l = 0;
    2525    char *str = NULL;
    26     size_t n = (size_t)0;
    2726    FILE *fd = NULL;
    2827
     
    5352
    5453    if ((fd = fopen(s,"r")) != NULL) {
    55         (void)getline(&str, &n, fd);
     54        mr_getline(str, fd);
    5655        fprintf(stdout, "%s", str);
    5756        mr_free(str);
Note: See TracChangeset for help on using the changeset viewer.