summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-restore.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-10-17 21:46:53 +0200
committerPhil Sutter <phil@nwl.cc>2019-10-18 11:57:10 +0200
commit2718697373b042736bf8a9ee501f6a724193a6d9 (patch)
tree360a2295d8ce22c763c51505a502205c0b41e719 /iptables/xtables-restore.c
parentc41b98babd55f35834e5fea599a914d69d60a9bd (diff)
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 <pablo@netfilter.org> Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r--iptables/xtables-restore.c2
1 files changed, 1 insertions, 1 deletions
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[])
{