summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-04-13 13:43:33 +0200
committerFlorian Westphal <fw@strlen.de>2018-04-13 20:06:16 +0200
commit69c089b19a144c482c00d65f17c6c80b25b4d052 (patch)
tree167468244b8f1c974f0f671cb2baec91280ec101 /iptables/nft-shared.h
parent03ecffe6c2cc0c71f5ece161d39368d56930e241 (diff)
xt-compat: constify a few struct members
avoids a compiler warning in a followup patch. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r--iptables/nft-shared.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index c0948fd4..e13a1a85 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -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;
};