Ignore:
Timestamp:
09/25/15 15:04:46 (6 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:
f6366a7
Parents:
10553bf
Message:

Fix errors/warnings that appeared on Fedora

Main problem was that we had an inline function that was defined in
a different place to where it was declared.

Also fixed a couple of uninitialised variables that weren't likely to be
a problem but better safe than sorry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux_common.c

    rf2066fa r26c2d4c  
    452452}
    453453
    454 /**
    455  * Converts a socket, either packet_mmap or standard raw socket into a
    456  * fanout socket.
    457  * NOTE: This means we can read from the socket with multiple queues,
    458  * each must be setup (identically) and then this called upon them
    459  *
    460  * @return 0 success, -1 error
    461  */
    462 inline int linuxcommon_to_packet_fanout(libtrace_t *libtrace,
    463                                         struct linux_per_stream_t *stream)
    464 {
    465         int fanout_opt = ((int)FORMAT_DATA->fanout_flags << 16) |
    466                          (int)FORMAT_DATA->fanout_group;
    467         if (setsockopt(stream->fd, SOL_PACKET, PACKET_FANOUT,
    468                         &fanout_opt, sizeof(fanout_opt)) == -1) {
    469                 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED,
    470                               "Converting the fd to a socket fanout failed %s",
    471                               libtrace->uridata);
    472                 return -1;
    473         }
    474         return 0;
    475 }
    476 
    477454int linuxcommon_pause_input(libtrace_t *libtrace)
    478455{
Note: See TracChangeset for help on using the changeset viewer.