Changeset 6d1c2c0 for lib


Ignore:
Timestamp:
10/05/15 17:33:27 (5 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
2e91590
Parents:
d8b05b7
Message:

Fix a few more warnings

Location:
lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/deque.c

    r6a082f8 r6d1c2c0  
    126126{
    127127        int ret = 0;
    128         list_node_t * n;
     128        list_node_t * n=NULL;
    129129        ASSERT_RET(pthread_mutex_lock(&q->lock), == 0);
    130130        if (q->tail != NULL) {
  • lib/format_linux_common.h

    rf6366a7 r6d1c2c0  
    262262} ALIGN_STRUCT(CACHE_LINE_SIZE);
    263263
    264 #define ZERO_LINUX_STREAM {-1, MAP_FAILED, 0, {0}}
     264#define ZERO_LINUX_STREAM {-1, MAP_FAILED, 0, {0,0,0,0}}
    265265
    266266
  • lib/format_linux_int.c

    rd8b05b7 r6d1c2c0  
    7272}
    7373
     74#ifdef HAVE_PACKET_FANOUT
    7475static int linuxnative_pstart_input(libtrace_t *libtrace) {
    7576        return linuxcommon_pstart_input(libtrace, linuxcommon_start_input_stream);
    7677}
     78#endif
    7779
    7880static int linuxnative_start_output(libtrace_out_t *libtrace)
     
    308310}
    309311
     312#ifdef HAVE_PACKET_FANOUT
    310313static int linuxnative_pread_packets(libtrace_t *libtrace,
    311314                                     libtrace_thread_t *t,
     
    320323                return packets[0]->error;
    321324}
     325#endif
    322326
    323327static int linuxnative_write_packet(libtrace_out_t *libtrace,
  • lib/format_linux_ring.c

    rd8b05b7 r6d1c2c0  
    283283}
    284284
     285#ifdef HAVE_PACKET_FANOUT
    285286static int linuxring_pstart_input(libtrace_t *libtrace) {
    286287        return linuxcommon_pstart_input(libtrace, linuxring_start_input_stream);
    287288}
     289#endif
    288290
    289291static int linuxring_start_output(libtrace_out_t *libtrace)
     
    552554}
    553555
     556#ifdef HAVE_PACKET_FANOUT
    554557static int linuxring_pread_packets(libtrace_t *libtrace,
    555558                                   libtrace_thread_t *t,
     
    564567                return packets[0]->error;
    565568}
     569#endif
    566570
    567571/* Non-blocking read */
Note: See TracChangeset for help on using the changeset viewer.