Changeset 0c835744


Ignore:
Timestamp:
04/20/10 14:11:04 (11 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:
65c178a
Parents:
7a27af0
Message:

Update to avoid using deprecated trace_get_link()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-wireless.c

    rf0c639b r0c835744  
    8181        trace_read_packet(trace, packet);
    8282
    83         l = trace_get_link(packet);
    84         lt = trace_get_link_type(packet);
     83        l = trace_get_packet_buffer(packet, &lt,NULL);
    8584
    8685        /* Check that the right linktype is being reported for this trace */
     
    133132        packet = trace_create_packet();
    134133        trace_read_packet(trace,packet);
    135         l = trace_get_link(packet);
    136         lt = trace_get_link_type(packet);
     134        l = trace_get_packet_buffer(packet,&lt,NULL);
    137135        assert(lt != TRACE_TYPE_80211_RADIO);
    138136
     
    152150        trace_destroy_packet(packet);
    153151        trace_destroy(trace);
    154         printf("%s: success\n", argv[0]);
    155152        return 0;
    156153}
Note: See TracChangeset for help on using the changeset viewer.