From 2718697373b042736bf8a9ee501f6a724193a6d9 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 17 Oct 2019 21:46:53 +0200 Subject: xtables-restore: Treat struct nft_xt_restore_parse as const This structure contains restore parser configuration, parser is not supposed to alter it. Suggested-by: Pablo Neira Ayuso Signed-off-by: Phil Sutter Acked-by: Pablo Neira Ayuso --- iptables/xtables-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/xtables-restore.c') diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index 4f6d324b..cb03104e 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -86,7 +86,7 @@ static const struct xtc_ops xtc_ops = { }; void xtables_restore_parse(struct nft_handle *h, - struct nft_xt_restore_parse *p, + const struct nft_xt_restore_parse *p, struct nft_xt_restore_cb *cb, int argc, char *argv[]) { -- cgit v1.2.3