summaryrefslogtreecommitdiffstats
path: root/include/libnftables/rule.h
diff options
context:
space:
mode:
authorEric Leblond <eric@regit.org>2013-07-06 17:33:16 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-07-19 13:20:50 +0200
commitd4faa02971e3924512f93e1d369bb134aa6d96b1 (patch)
tree3241dfddcdfffe693266ee7aea9ce43e2fa41b0a /include/libnftables/rule.h
parent2e4c94e9ddc1bf23663a4d2bdc75d8735ee97d88 (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 'include/libnftables/rule.h')
-rw-r--r--include/libnftables/rule.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libnftables/rule.h b/include/libnftables/rule.h
index 9adfcfc..c597444 100644
--- a/include/libnftables/rule.h
+++ b/include/libnftables/rule.h
@@ -26,7 +26,7 @@ enum {
};
void nft_rule_attr_unset(struct nft_rule *r, uint16_t attr);
-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);
void nft_rule_attr_set(struct nft_rule *r, uint16_t attr, const void *data);
void nft_rule_attr_set_u32(struct nft_rule *r, uint16_t attr, uint32_t val);
void nft_rule_attr_set_u64(struct nft_rule *r, uint16_t attr, uint64_t val);