Page MenuHomeFreeBSD

D45509.diff
No OneTemporary

D45509.diff

diff --git a/sys/net/bpf.h b/sys/net/bpf.h
--- a/sys/net/bpf.h
+++ b/sys/net/bpf.h
@@ -433,15 +433,13 @@
void bpfilterattach(int);
u_int bpf_filter(const struct bpf_insn *, u_char *, u_int, u_int);
-static __inline int
+static __inline bool
bpf_peers_present(struct bpf_if *bpf)
{
struct bpf_if_ext *ext;
ext = (struct bpf_if_ext *)bpf;
- if (!CK_LIST_EMPTY(&ext->bif_dlist))
- return (1);
- return (0);
+ return (!CK_LIST_EMPTY(&ext->bif_dlist));
}
#define BPF_TAP(_ifp,_pkt,_pktlen) \

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 4, 5:18 PM (21 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13421264
Default Alt Text
D45509.diff (510 B)

Event Timeline