Changeset c1db742 for lib/trace.c


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/trace.c

    rfe76c55 rc1db742  
    519519libtrace_packet_t *trace_create_packet() {
    520520        libtrace_packet_t *packet = calloc(1,sizeof(libtrace_packet_t));
    521         packet->buf_control=PACKET;
     521        packet->buf_control=TRACE_CTRL_PACKET;
    522522        return packet;
    523523}
     
    547547        assert(libtrace->started && "BUG: You must call libtrace_start() before trace_read_packet()\n");
    548548        assert(packet);
    549         assert((packet->buf_control==PACKET || packet->buf_control==EXTERNAL)&&
     549        assert((packet->buf_control==TRACE_CTRL_PACKET || packet->buf_control==TRACE_CTRL_EXTERNAL)&&
    550550                "BUG: You must allocate a packet using packet_create()");
    551551     
Note: See TracChangeset for help on using the changeset viewer.