diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-11-17 18:25:58 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-11-19 14:05:49 +0100 |
commit | 3c7ea26c85b95a4c62355c359030d6bbdf2f8df0 (patch) | |
tree | a10bdf3cdd4ceb78a4848415354225241f5c059f /iptables/xtables-restore.c | |
parent | 5016d1eb84f951d84f5a0c18f994f40677ad0643 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r-- | iptables/xtables-restore.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |