From ec75831c439ebd3475e0ba6766188d963538129a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 6 Aug 2013 11:36:54 +0200 Subject: 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 --- src/set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/set.c') diff --git a/src/set.c b/src/set.c index 6e1be38..6afbc03 100644 --- a/src/set.c +++ b/src/set.c @@ -148,7 +148,7 @@ void nft_set_attr_set_str(struct nft_set *s, uint16_t attr, const char *str) } EXPORT_SYMBOL(nft_set_attr_set_str); -void *nft_set_attr_get(struct nft_set *s, uint16_t attr) +const void *nft_set_attr_get(struct nft_set *s, uint16_t attr) { if (!(s->flags & (1 << attr))) return NULL; -- cgit v1.2.3