Changeset 8d1956e


Ignore:
Timestamp:
04/28/05 16:33:54 (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:
b33a242
Parents:
b13027e
Message:

typo in conditional in strndup.c
typos in trace.c

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/strndup.c

    r808a478 r8d1956e  
    44#include "../config.h"
    55
    6 #ifdef HAVE_STRNDUP
     6#ifndef HAVE_STRNDUP
    77
    88#include <stdlib.h>
  • lib/trace.c

    ra6badc2 r8d1956e  
    273273                (*libtrace)->format=RTCLIENT;
    274274        } else if (!strncasecmp(scan,"wagint",6)) {
     275        struct ports_t *port;
    275276                (*libtrace)->format=WAGINT;
    276277        } else if (!strncasecmp(scan,"wag",3)) {
     
    16811682#ifdef DLT_LINUX_SLL
    16821683                        case TRACE_TYPE_LINUX_SLL:
    1683                                 pcap = pcap_open_dead(DLT_LINUX_SLL, 1500);
     1684                                pcap = (pcap_t *)pcap_open_dead(DLT_LINUX_SLL, 1500);
    16841685                                break;
    16851686#endif
    16861687#ifdef DLT_PFLOG
    16871688                        case TRACE_TYPE_PFLOG:
    1688                                 pcap = pcap_open_dead(DLT_PFLOG, 1500);
     1689                                pcap = (pcap_t *)pcap_open_dead(DLT_PFLOG, 1500);
    16891690                                break;
    16901691#endif
     
    18331834{
    18341835        struct libtrace_ip *ip = trace_get_ip(packet);
     1836        struct ports_t *port;
    18351837        if (6 != ip->ip_p
    18361838          && 17 != ip->ip_p)
     
    18391841                return 0;
    18401842
    1841         struct ports_t *port;
    18421843        port = (struct ports_t *)((ptrdiff_t)ip + (ip->ip_hl * 4));
    18431844
     
    18491850{
    18501851        struct libtrace_ip *ip = trace_get_ip(packet);
     1852        struct ports_t *port;
    18511853
    18521854        if (6 != ip->ip_p
     
    18571859                return 0;
    18581860
    1859         struct ports_t *port;
    18601861        port = (struct ports_t *)((ptrdiff_t)ip + (ip->ip_hl * 4));
    18611862
Note: See TracChangeset for help on using the changeset viewer.