Changeset 44c6c85 for lib


Ignore:
Timestamp:
11/01/05 16:35:36 (16 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
a3505a8
Parents:
803ea87
Message:

Replaced all instances of sizeof(rt_status_t) with sizeof(uint32_t)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r803ea87 r44c6c85  
    3636#include "format_helper.h"
    3737#include "parse_cmd.h"
    38 #include "rt_protocol.h"
    3938
    4039#ifdef HAVE_INTTYPES_H
     
    624623                // Read status byte
    625624                if (tracefifo_out_read(libtrace->fifo,
    626                                 &packet->status, sizeof(rt_status_t)) == 0) {
     625                                &packet->status, sizeof(uint32_t)) == 0) {
    627626                        read_required = 1;
    628627                        continue;
    629628                }
    630                 tracefifo_out_update(libtrace->fifo,sizeof(rt_status_t));
     629                tracefifo_out_update(libtrace->fifo,sizeof(uint32_t));
    631630
    632631                // read in the ERF header
     
    641640                        // Need to skip this packet as it is a message packet
    642641                        tracefifo_out_update(libtrace->fifo, dag_record_size);
    643                         tracefifo_ack_update(libtrace->fifo, dag_record_size + sizeof(rt_status_t));
     642                        tracefifo_ack_update(libtrace->fifo, dag_record_size + sizeof(uint32_t));
    644643                        continue;
    645644                }
     
    658657                tracefifo_out_update(libtrace->fifo,size);
    659658
    660                 tracefifo_ack_update(libtrace->fifo,size + sizeof(rt_status_t));
     659                tracefifo_ack_update(libtrace->fifo,size + sizeof(uint32_t));
    661660
    662661                packet->size = numbytes;
Note: See TracChangeset for help on using the changeset viewer.