]> The Tcpdump Group git mirrors - libpcap/commitdiff
We require ANSI/ISO C; no need to support prototypeless C.
authorGuy Harris <[email protected]>
Sun, 18 Dec 2016 02:52:04 +0000 (18:52 -0800)
committerGuy Harris <[email protected]>
Sun, 18 Dec 2016 02:52:04 +0000 (18:52 -0800)
pcap/bpf.h

index 78ad8905d02dc7f8c32e8f99566c728b30509e49..c41b3146d55674a2a9c7ea4aa5b6a61a7e3ba752 100644 (file)
@@ -258,15 +258,9 @@ struct bpf_aux_data {
 #define BPF_STMT(code, k) { (u_short)(code), 0, 0, k }
 #define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k }
 
-#if __STDC__ || defined(__cplusplus)
 PCAP_API int bpf_validate(const struct bpf_insn *, int);
 PCAP_API u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int);
 extern u_int bpf_filter_with_aux_data(const struct bpf_insn *, const u_char *, u_int, u_int, const struct bpf_aux_data *);
-#else
-PCAP_API int bpf_validate();
-PCAP_API u_int bpf_filter();
-extern u_int bpf_filter_with_aux_data();
-#endif
 
 /*
  * Number of scratch memory words (for BPF_LD|BPF_MEM and BPF_ST).