Changeset 516a90d for lib


Ignore:
Timestamp:
04/27/06 01:04:05 (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:
4927e86
Parents:
e641bdc
Message:

#ifdef out bpf specific code when not compiling with pcap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r747c501 r516a90d  
    929929#else
    930930        fprintf(stderr,"This version of libtrace does not have bpf filter support\n");
    931         return 0;
     931        return NULL;
    932932#endif
    933933}
     
    935935DLLEXPORT void trace_destroy_bpf(libtrace_filter_t *filter)
    936936{
     937#if HAVE_BPF
    937938        free(filter->filterstring);
    938939        if (filter->flag)
    939940                pcap_freecode(&filter->filter);
    940941        free(filter);
     942#else
     943
     944#endif
    941945}
    942946
Note: See TracChangeset for help on using the changeset viewer.