diff options
author | Kris Katterjohn <kjak@ispwest.com> | 2006-01-06 13:08:20 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-01-06 13:08:20 -0800 |
commit | 4bad4dc919573dbe9a5b41dd9edff279e99822d7 (patch) | |
tree | 530b791512cfd2f310c5806d109242bccf090fd7 /net | |
parent | dbbc0988288d9643044e8bd8c7e7de70016ecd23 (diff) | |
download | lwn-4bad4dc919573dbe9a5b41dd9edff279e99822d7.tar.gz lwn-4bad4dc919573dbe9a5b41dd9edff279e99822d7.zip |
[NET]: Change sk_run_filter()'s return type in net/core/filter.c
It should return an unsigned value, and fix sk_filter() as well.
Signed-off-by: Kris Katterjohn <kjak@ispwest.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/filter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index 8964d3445588..9eb9d0017a01 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -75,7 +75,7 @@ static inline void *load_pointer(struct sk_buff *skb, int k, * len is the number of filter blocks in the array. */ -int sk_run_filter(struct sk_buff *skb, struct sock_filter *filter, int flen) +unsigned int sk_run_filter(struct sk_buff *skb, struct sock_filter *filter, int flen) { struct sock_filter *fentry; /* We walk down these */ void *ptr; @@ -241,9 +241,9 @@ load_b: A = X; continue; case BPF_RET|BPF_K: - return ((unsigned int)fentry->k); + return fentry->k; case BPF_RET|BPF_A: - return ((unsigned int)A); + return A; case BPF_ST: mem[fentry->k] = A; continue; |