Changeset 464


Ignore:
Timestamp:
11/01/05 16:35:36 (8 years ago)
Author:
spa1
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_erf.c

    r463 r464  
    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.