path: root/include
diff options
authorPablo Neira Ayuso <>2013-08-06 13:34:27 +0200
committerPablo Neira Ayuso <>2013-08-06 13:51:44 +0200
commit10c46573d4e60a883fa34011766060064ec2be6a (patch)
tree72da143c2aaca9a59cf6d36d6bcf9a8568959293 /include
parentd4809085e24a66239d11f7269cfec24920c1642a (diff)
set_elem: constify nft_set_elem_attr_get_str
Should have been done in (ec75831 src: fully constify nft_*_get functions) Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libnftables/set.h b/include/libnftables/set.h
index 06380d4..e81b3ac 100644
--- a/include/libnftables/set.h
+++ b/include/libnftables/set.h
@@ -90,7 +90,7 @@ void nft_set_elem_attr_set(struct nft_set_elem *s, uint16_t attr, const void *da
void nft_set_elem_attr_set_u32(struct nft_set_elem *s, uint16_t attr, uint32_t val);
void nft_set_elem_attr_set_str(struct nft_set_elem *s, uint16_t attr, const char *str);
-void *nft_set_elem_attr_get(struct nft_set_elem *s, uint16_t attr, size_t *data_len);
+const void *nft_set_elem_attr_get(struct nft_set_elem *s, uint16_t attr, size_t *data_len);
const char *nft_set_elem_attr_get_str(struct nft_set_elem *s, uint16_t attr);
uint32_t nft_set_elem_attr_get_u32(struct nft_set_elem *s, uint16_t attr);