From d4faa02971e3924512f93e1d369bb134aa6d96b1 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sat, 6 Jul 2013 17:33:16 +0200 Subject: src: constify parameter of nft_*_is_set The functions nft_*_attr_is_set() is doing no modification so it is possible to type it to const. Signed-off-by: Eric Leblond Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 37a085f..b1bf64b 100644 --- a/src/rule.c +++ b/src/rule.c @@ -73,7 +73,7 @@ void nft_rule_free(struct nft_rule *r) } EXPORT_SYMBOL(nft_rule_free); -bool nft_rule_attr_is_set(struct nft_rule *r, uint16_t attr) +bool nft_rule_attr_is_set(const struct nft_rule *r, uint16_t attr) { return r->flags & (1 << attr); } -- cgit v1.2.3