Changeset 3be9a2b for lib/trace.c


Ignore:
Timestamp:
04/08/06 17:06:04 (16 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:
4617920
Parents:
e7bc155
Message:

More of mattb's compatibility fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    rabc8e94 r3be9a2b  
    4545#include <errno.h>
    4646#include <fcntl.h>
    47 #include <netdb.h>
    4847#include <stdio.h>
    4948#include <stdlib.h>
     
    6160#endif
    6261
    63 #include <sys/socket.h>
    64 #include <sys/un.h>
    65 #include <unistd.h>
    66 
    6762#ifdef HAVE_NET_IF_ARP_H
    6863#  include <net/if_arp.h>
     
    8681
    8782#include <time.h>
    88 #include <sys/ioctl.h>
    89 
    90 #ifdef HAVE_INTTYPES_H
    91 #  include <inttypes.h>
    92 #else
    93 #  error "Can't find inttypes.h - this needs to be fixed"
    94 #endif
    95 
    96 #ifdef HAVE_STDDEF_H
    97 #  include <stddef.h>
    98 #else
    99 # error "Can't find stddef.h - do you define ptrdiff_t elsewhere?"
    100 #endif
    10183
    10284#include "libtrace.h"
     
    11698#include "format_helper.h"
    11799#include "rt_protocol.h"
    118 #include <err.h>
    119100
    120101#define MAXOPTS 1024
     
    10911072 * @author Daniel Lawson
    10921073 */
    1093 int8_t trace_get_server_port(uint8_t protocol __attribute__((unused)), uint16_t source, uint16_t dest) {
     1074int8_t trace_get_server_port(uint8_t protocol UNUSED, uint16_t source, uint16_t dest) {
    10941075        /*
    10951076         * * If the ports are equal, return DEST
Note: See TracChangeset for help on using the changeset viewer.