summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-25 22:32:53 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-25 22:33:39 +0100
commit77a0c90c0bffc6dccf2ca18be813f963577bb4e5 (patch)
tree8df4c5884cd6d11906c1e8e971c9352ea4491729
parentd476c3187a0e452c13784a9d49d116bb3a660561 (diff)
Fix warning
* device/net_io.c (net_set_filter): Cast filter into bpf_insn_t for bpf_eq call.
-rw-r--r--device/net_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/net_io.c b/device/net_io.c
index 2311599..1db9bca 100644
--- a/device/net_io.c
+++ b/device/net_io.c
@@ -1226,7 +1226,7 @@ net_set_filter(ifp, rcv_port, priority, filter, filter_count)
&& my_infp == 0
&& (infp->filter_end - infp->filter) == filter_count
&& bpf_eq((bpf_insn_t)infp->filter,
- filter, filter_bytes))
+ (bpf_insn_t)filter, filter_bytes))
my_infp = infp;
for (i = 0; i < NET_HASH_SIZE; i++) {