From 3c7ea26c85b95a4c62355c359030d6bbdf2f8df0 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 17 Nov 2018 18:25:58 +0100 Subject: xtables: constify struct builtin_table and struct builtin_chain These definitions should be const, propagate this to all existing users. Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/xtables-save.c') diff --git a/iptables/xtables-save.c b/iptables/xtables-save.c index d121d50e..414a864b 100644 --- a/iptables/xtables-save.c +++ b/iptables/xtables-save.c @@ -122,7 +122,7 @@ do_output(struct nft_handle *h, const char *tablename, bool counters) static int xtables_save_main(int family, const char *progname, int argc, char *argv[]) { - struct builtin_table *tables; + const struct builtin_table *tables; const char *tablename = NULL; bool dump = false; struct nft_handle h = { -- cgit v1.2.3