]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables-restore: Treat struct nft_xt_restore_parse as const
authorPhil Sutter <phil@nwl.cc>
Thu, 17 Oct 2019 19:46:53 +0000 (21:46 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 18 Oct 2019 09:57:10 +0000 (11:57 +0200)
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>
iptables/nft-shared.h
iptables/xtables-restore.c

index 9d62913461fa4876c55b88d0e469795d003e4727..a330aceb9785c03930e25aab0ab7fcd08c1faf4d 100644 (file)
@@ -261,7 +261,7 @@ struct nft_xt_restore_cb {
 };
 
 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[]);
 
index 4f6d324bdafe99b2898cadc522ab9d0e3195e7c3..cb03104e91a7b59ac037cd111a3d57a7b36018bc 100644 (file)
@@ -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[])
 {