Changeset 52f8fc2 for lib/format_rt.c


Ignore:
Timestamp:
02/23/06 13:14:32 (16 years ago)
Author:
Perry Lorier <perry@…>
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:
8ea5b38
Parents:
aa62105
Message:

Cleanup some uses of packet->trace where the trace is already available!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    rc2d5f23 r52f8fc2  
    389389        rt_data_t data_hdr;
    390390        void *buffer = 0;
    391 
    392         packet->trace = libtrace;
    393391
    394392        if (packet->buf_control == TRACE_CTRL_EXTERNAL || !packet->buffer) {
     
    507505}
    508506
    509 static int rt_get_fd(const struct libtrace_packet_t *packet) {
    510         return packet->trace->format_data->input_fd;
     507static int rt_get_fd(const struct libtrace_t *trace) {
     508        return trace->format_data->input_fd;
    511509}
    512510
     
    554552        NULL,                           /* get_framing_length */
    555553        NULL,                           /* set_capture_length */
    556         rt_get_fd,                /* get_fd */
     554        rt_get_fd,                      /* get_fd */
    557555        trace_event_device,             /* trace_event */
    558556        rt_help                   /* help */
Note: See TracChangeset for help on using the changeset viewer.