diff options
author | Eric Leblond <eric@regit.org> | 2013-07-06 17:33:16 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-07-19 13:20:50 +0200 |
commit | d4faa02971e3924512f93e1d369bb134aa6d96b1 (patch) | |
tree | 3241dfddcdfffe693266ee7aea9ce43e2fa41b0a /src/set_elem.c | |
parent | 2e4c94e9ddc1bf23663a4d2bdc75d8735ee97d88 (diff) |
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 <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/set_elem.c')
-rw-r--r-- | src/set_elem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/set_elem.c b/src/set_elem.c index e95a872..4adba91 100644 --- a/src/set_elem.c +++ b/src/set_elem.c @@ -45,7 +45,7 @@ void nft_set_elem_free(struct nft_set_elem *s) } EXPORT_SYMBOL(nft_set_elem_free); -bool nft_set_elem_attr_is_set(struct nft_set_elem *s, uint16_t attr) +bool nft_set_elem_attr_is_set(const struct nft_set_elem *s, uint16_t attr) { return s->flags & (1 << attr); } |