summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-translate.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-10-17 22:49:26 +0200
committerPhil Sutter <phil@nwl.cc>2019-10-18 11:57:31 +0200
commiteedb0bb2ad01cf1d3af6fe3d644660ab81c1fc29 (patch)
treeafb7d402bbc257d6964dad8e05b21495ede78d1a /iptables/xtables-translate.c
parent4abb44c978d75656f69dd59f24522eb970881ccf (diff)
xtables-restore: Constify struct nft_xt_restore_cb
There is no need for dynamic callback mangling, so make all instances static const. Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-translate.c')
-rw-r--r--iptables/xtables-translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-translate.c b/iptables/xtables-translate.c
index 64e7667a..43607901 100644
--- a/iptables/xtables-translate.c
+++ b/iptables/xtables-translate.c
@@ -413,7 +413,7 @@ static int dummy_compat_rev(const char *name, uint8_t rev, int opt)
return 1;
}
-static struct nft_xt_restore_cb cb_xlate = {
+static const struct nft_xt_restore_cb cb_xlate = {
.table_new = xlate_table_new,
.chain_set = xlate_chain_set,
.chain_restore = xlate_chain_user_restore,