Ignore:
Timestamp:
Oct 7, 2005, 7:03:07 PM (15 years ago)
Author:
bcornec
Message:

some bugs corrected (size_t, & for getline, ...) + indent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-archive.c

    r45 r49  
    995995    asprintf(&archiving_filelist_fname, FILELIST_FNAME_RAW_SZ,
    996996             bkpinfo->tmpdir, 0L);
    997     archiving_set_no = 0;
     997    archiving_set_no = 0L;
    998998    while (does_file_exist(archiving_filelist_fname)) {
    999999        paranoid_free(archiving_filelist_fname);
     
    19811981    int retval = 0;
    19821982    int res = 0;
    1983     int n = 0;
     1983    size_t n = 0;
    19841984    pid_t pid;
    19851985    FILE *ftmp = NULL;
     
    20152015        return (1);
    20162016    }
    2017     for (getline(&bigfile_fname, (size_t) & n, fin); !feof(fin);
    2018          getline(&bigfile_fname, (size_t) & n, fin),
     2017    for (getline(&bigfile_fname, &n, fin); !feof(fin);
     2018         getline(&bigfile_fname, &n, fin),
    20192019         biggie_file_number++) {
    20202020        use_partimagehack = FALSE;
     
    30463046
    30473047    /*@ buffers ************************************************** */
    3048     char *tmp, *checksum_line, *command;
     3048    char *tmp, *checksum_line = NULL, *command;
    30493049    char *tempblock;
    30503050    char *curr_slice_fname_uncompressed;
     
    30753075    int retval = 0;
    30763076    int res = 0;
    3077     int n = 0;
     3077    size_t n = 0;
    30783078
    30793079    /*@ structures ************************************************** */
     
    31153115        }
    31163116        paranoid_free(command);
    3117         (void) getline(&checksum_line, (size_t) & n, fin);
     3117        (void) getline(&checksum_line, &n, fin);
    31183118        pclose(fin);
    31193119    }
Note: See TracChangeset for help on using the changeset viewer.