path: root/src/table.c
diff options
authorPablo Neira Ayuso <>2013-08-06 11:36:54 +0200
committerPablo Neira Ayuso <>2013-08-06 11:42:13 +0200
commitec75831c439ebd3475e0ba6766188d963538129a (patch)
tree399708dbe2dac766c27093c348e792e22d04ddc0 /src/table.c
parent99d25746b94b602f7b0f2381b73e0f52d11fca31 (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 <>
Diffstat (limited to 'src/table.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table.c b/src/table.c
index 92ad37d..6875dd7 100644
--- a/src/table.c
+++ b/src/table.c
@@ -28,7 +28,7 @@
struct nft_table {
struct list_head head;
- char *name;
+ const char *name;
uint8_t family;
uint32_t table_flags;
uint32_t flags;