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/internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/internal.h') diff --git a/src/internal.h b/src/internal.h index 4d39660..8d11acf 100644 --- a/src/internal.h +++ b/src/internal.h @@ -73,8 +73,8 @@ struct nft_set { uint32_t family; uint32_t set_flags; - char *table; - char *name; + const char *table; + const char *name; uint32_t key_type; uint32_t key_len; uint32_t data_type; -- cgit v1.2.3