Changeset 302714f


Ignore:
Timestamp:
10/13/06 11:31:11 (14 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

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    r7a68b44 r302714f  
    186186
    187187static int pcapfile_config_output(libtrace_out_t *libtrace,
    188                 trace_option_t option,
     188                trace_option_output_t option,
    189189                void *value)
    190190{
  • 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.