From eedb0bb2ad01cf1d3af6fe3d644660ab81c1fc29 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 17 Oct 2019 22:49:26 +0200 Subject: 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 Acked-by: Pablo Neira Ayuso --- iptables/xtables-translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/xtables-translate.c') 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, -- cgit v1.2.3