]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xt-compat: constify a few struct members
authorFlorian Westphal <fw@strlen.de>
Fri, 13 Apr 2018 11:43:33 +0000 (13:43 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 13 Apr 2018 18:06:16 +0000 (20:06 +0200)
avoids a compiler warning in a followup patch.

Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft-shared.h

index c0948fd4e266c31f52ae461b191879b2d3371c76..e13a1a8563c347b19484e527a41803a4ff8b11dc 100644 (file)
@@ -223,9 +223,9 @@ struct nft_xt_cmd_parse {
        unsigned int                    command;
        unsigned int                    rulenum;
        char                            *table;
-       char                            *chain;
-       char                            *newname;
-       char                            *policy;
+       const char                      *chain;
+       const char                      *newname;
+       const char                      *policy;
        bool                            restore;
        int                             verbose;
 };