Ignore:
Timestamp:
Sep 17, 2009, 3:45:24 AM (15 years ago)
Author:
Bruno Cornec
Message:

Removes some malloc_string static allocation

File:
1 edited

Legend:

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

    r2383 r2405  
    13151315    while (ctrl_chr != BLK_START_AN_AFIO_OR_SLICE) {
    13161316        res =
    1317             read_header_block_from_stream(&temp_size, temp_fname,
    1318                                           &ctrl_chr);
     1317            read_header_block_from_stream(&temp_size, temp_fname, &ctrl_chr);
    13191318        if (ctrl_chr == BLK_START_AN_AFIO_OR_SLICE) {
    13201319            break;
     
    13261325    while (ctrl_chr != BLK_START_FILE) {
    13271326        res =
    1328             read_header_block_from_stream(&temp_size, temp_fname,
    1329                                           &ctrl_chr);
     1327            read_header_block_from_stream(&temp_size, temp_fname, &ctrl_chr);
    13301328        if (ctrl_chr == BLK_START_FILE) {
    13311329            break;
     
    13481346    }
    13491347    while (strcmp(pA, pB)) {
    1350         log_msg(6, "Skipping %s (it's not %s)", temp_fname,
    1351                 the_file_I_was_reading);
     1348        log_msg(6, "Skipping %s (it's not %s)", temp_fname, the_file_I_was_reading);
    13521349        for (size = temp_size; size > 0; size -= bytes_to_write) {
    13531350            bytes_to_write =
     
    13571354        }
    13581355        res =
    1359             read_header_block_from_stream(&temp_size, temp_fname,
    1360                                           &ctrl_chr);
     1356            read_header_block_from_stream(&temp_size, temp_fname, &ctrl_chr);
    13611357        if (ctrl_chr != BLK_STOP_FILE) {
    13621358            wrong_marker(BLK_STOP_FILE, ctrl_chr);
    13631359        }
    13641360        res =
    1365             read_header_block_from_stream(&temp_size, temp_fname,
    1366                                           &ctrl_chr);
     1361            read_header_block_from_stream(&temp_size, temp_fname, &ctrl_chr);
    13671362        if (ctrl_chr != BLK_STOP_AN_AFIO_OR_SLICE) {
    13681363            wrong_marker(BLK_STOP_AN_AFIO_OR_SLICE, ctrl_chr);
    13691364        }
    13701365        res =
    1371             read_header_block_from_stream(&temp_size, temp_fname,
    1372                                           &ctrl_chr);
     1366            read_header_block_from_stream(&temp_size, temp_fname, &ctrl_chr);
    13731367        if (ctrl_chr != BLK_START_AN_AFIO_OR_SLICE) {
    13741368            wrong_marker(BLK_START_AN_AFIO_OR_SLICE, ctrl_chr);
    13751369        }
    13761370        res =
    1377             read_header_block_from_stream(&temp_size, temp_fname,
    1378                                           &ctrl_chr);
     1371            read_header_block_from_stream(&temp_size, temp_fname, &ctrl_chr);
    13791372        if (ctrl_chr != BLK_START_FILE) {
    13801373            wrong_marker(BLK_START_FILE, ctrl_chr);
     
    13931386        }
    13941387    }
    1395     log_msg(2, "Reading %s (it matches %s)", temp_fname,
    1396             the_file_I_was_reading);
     1388    log_msg(2, "Reading %s (it matches %s)", temp_fname, the_file_I_was_reading);
    13971389    paranoid_free(temp_fname);
    13981390    paranoid_free(datablock);
Note: See TracChangeset for help on using the changeset viewer.