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 --- include/libnftables/chain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libnftables/chain.h') diff --git a/include/libnftables/chain.h b/include/libnftables/chain.h index e20dbd1..382947f 100644 --- a/include/libnftables/chain.h +++ b/include/libnftables/chain.h @@ -27,7 +27,7 @@ enum { NFT_CHAIN_ATTR_TYPE, }; -bool nft_chain_attr_is_set(struct nft_chain *c, uint16_t attr); +bool nft_chain_attr_is_set(const struct nft_chain *c, uint16_t attr); void nft_chain_attr_unset(struct nft_chain *c, uint16_t attr); void nft_chain_attr_set(struct nft_chain *t, uint16_t attr, const void *data); void nft_chain_attr_set_u32(struct nft_chain *t, uint16_t attr, uint32_t data); -- cgit v1.2.3