Changeset 6e60e50


Ignore:
Timestamp:
08/12/04 14:56:00 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
88a1679
Parents:
4a988af
Message:

test for stdint properly
fixes in wag.h

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    rdfef05d r6e60e50  
    6161#include <sys/ioctl.h>
    6262
    63 #include <stdint.h>
     63#ifdef HAVE_STDINT_H
     64#  include <stdint.h>
     65#endif
     66
    6467#ifdef HAVE_STDDEF_H
    6568#include <stddef.h>
  • lib/wag.h

    ra79ddbe r6e60e50  
    3737        uint32_t type;
    3838        uint32_t seq_num;
    39         uint8_t payload[];
     39        uint8_t payload[1];
    4040};
    4141
     
    4444        uint32_t rx_rssi;
    4545        uint32_t frame_length;
    46         uint8_t data[];
     46        uint8_t data[1];
    4747};
    4848
     
    6565        uint16_t     SeqCtl;
    6666        uint8_t      mac4[6];
    67         uint8_t      data[];
     67        uint8_t      data[1];
    6868};
    6969
    7070struct ieee_802_11_payload {
    7171        uint16_t     type;
    72         uint8_t      data[];
     72        uint8_t      data[1];
    7373};
    7474
Note: See TracChangeset for help on using the changeset viewer.