aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nft_set_rbtree.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2017-01-24 00:51:41 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-01-24 21:46:58 +0100
commitde70185de0333783154863278ac87bfbbc54e384 (patch)
tree6626cd05fd65bbdcd1a73e35c2cebd5c33f1ef37 /net/netfilter/nft_set_rbtree.c
parentnetfilter: nf_tables: fix set->nelems counting with no NLM_F_EXCL (diff)
downloadlinux-dev-de70185de0333783154863278ac87bfbbc54e384.tar.xz
linux-dev-de70185de0333783154863278ac87bfbbc54e384.zip
netfilter: nf_tables: deconstify walk callback function
The flush operation needs to modify set and element objects, so let's deconstify this. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_set_rbtree.c')
-rw-r--r--net/netfilter/nft_set_rbtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_set_rbtree.c b/net/netfilter/nft_set_rbtree.c
index 08376e50f6cd..f06f55ee516d 100644
--- a/net/netfilter/nft_set_rbtree.c
+++ b/net/netfilter/nft_set_rbtree.c
@@ -221,7 +221,7 @@ static void *nft_rbtree_deactivate(const struct net *net,
}
static void nft_rbtree_walk(const struct nft_ctx *ctx,
- const struct nft_set *set,
+ struct nft_set *set,
struct nft_set_iter *iter)
{
const struct nft_rbtree *priv = nft_set_priv(set);