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-restore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iptables/xtables-restore.c') diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index a46a9295..642876d6 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -105,9 +105,9 @@ void xtables_restore_parse(struct nft_handle *h, struct nft_xt_restore_cb *cb, int argc, char *argv[]) { + const struct builtin_table *curtable = NULL; char buffer[10240]; int in_table = 0; - struct builtin_table *curtable = NULL; const struct xtc_ops *ops = &xtc_ops; struct nftnl_chain_list *chain_list = NULL; @@ -359,7 +359,7 @@ void xtables_restore_parse(struct nft_handle *h, static int xtables_restore_main(int family, const char *progname, int argc, char *argv[]) { - struct builtin_table *tables; + const struct builtin_table *tables; struct nft_handle h = { .family = family, .restore = true, -- cgit v1.2.3