diff --git a/lib/bpf.c b/lib/bpf.c index 64e199b3..211c3d18 100644 --- a/lib/bpf.c +++ b/lib/bpf.c @@ -256,7 +256,7 @@ out: void bpf_print_ops(FILE *f, struct rtattr *bpf_ops, __u16 len) { - struct sock_filter *ops = (struct sock_filter *) RTA_DATA(bpf_ops); + struct sock_filter *ops = RTA_DATA(bpf_ops); int i; if (len == 0)