Ignore:
Timestamp:
02/22/06 16:44:31 (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:
f0d19d4
Parents:
fe76c55
Message:

rename PACKET/EXTERNAL to TRACE_CTRL_ to avoid symbol clashes on windows.
fix some c++ style comments that have snuck in somewhere along the lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_legacy.c

    r9ff68ff rc1db742  
    148148static int legacy_read_packet(struct libtrace_t *libtrace, struct libtrace_packet_t *packet) {
    149149        int numbytes;
    150         void *buffer = packet->buffer;
     150        void *buffer;
     151
     152        if (!packet->buffer || packet->buf_control == TRACE_CTRL_EXTERNAL) {
     153                packet->buf_control = TRACE_CTRL_PACKET;
     154                packet->buffer=malloc(LIBTRACE_PACKET_BUFSIZE);
     155        }
     156        buffer = packet->buffer;
    151157       
    152158        if ((numbytes=LIBTRACE_READ(INPUT.file,
Note: See TracChangeset for help on using the changeset viewer.