Changeset 302714f for lib/trace.c


Ignore:
Timestamp:
10/13/06 11:31:11 (15 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:
2e420ff
Parents:
428c837
Message:

Fix some warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    ra21af3d r302714f  
    780780                tv.tv_usec = (uint32_t)(((seconds - tv.tv_sec) * 1000000)/UINT_MAX);
    781781        }
     782        else {
     783                tv.tv_sec=-1;
     784                tv.tv_usec=-1;
     785        }
    782786
    783787        return tv;
     
    952956                libtrace_linktype_t linktype=trace_get_link_type(packet);
    953957                if (linktype==(libtrace_linktype_t)-1) {
    954                         trace_set_err(packet->trace,TRACE_ERR_BAD_PACKET,
     958                        trace_set_err(packet->trace,
     959                                        TRACE_ERR_BAD_PACKET,
    955960                                        "Packet has an unknown linktype");
    956961                        return -1;
Note: See TracChangeset for help on using the changeset viewer.