diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-06 11:36:54 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-06 11:42:13 +0200 |
commit | ec75831c439ebd3475e0ba6766188d963538129a (patch) | |
tree | 399708dbe2dac766c27093c348e792e22d04ddc0 /include/libnftables/chain.h | |
parent | 99d25746b94b602f7b0f2381b73e0f52d11fca31 (diff) |
src: fully constify nft_*_get functions
We have several char * field that were not constify to avoid
gcc compilation warnings when calling free. Since (99d2574 src:
add xfree and use it), we can fully constify these objects
fields without trouble.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables/chain.h')
-rw-r--r-- | include/libnftables/chain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libnftables/chain.h b/include/libnftables/chain.h index 53fd407..e80d007 100644 --- a/include/libnftables/chain.h +++ b/include/libnftables/chain.h @@ -35,7 +35,7 @@ void nft_chain_attr_set_s32(struct nft_chain *t, uint16_t attr, int32_t data); void nft_chain_attr_set_u64(struct nft_chain *t, uint16_t attr, uint64_t data); void nft_chain_attr_set_str(struct nft_chain *t, uint16_t attr, const char *str); -void *nft_chain_attr_get(struct nft_chain *c, uint16_t attr); +const void *nft_chain_attr_get(struct nft_chain *c, uint16_t attr); const char *nft_chain_attr_get_str(struct nft_chain *c, uint16_t attr); uint32_t nft_chain_attr_get_u32(struct nft_chain *c, uint16_t attr); int32_t nft_chain_attr_get_s32(struct nft_chain *c, uint16_t attr); |