From: Florian Westphal Date: Fri, 13 Apr 2018 11:43:33 +0000 (+0200) Subject: xt-compat: constify a few struct members X-Git-Tag: v1.8.0~128 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69c089b19a144c482c00d65f17c6c80b25b4d052;p=thirdparty%2Fiptables.git xt-compat: constify a few struct members avoids a compiler warning in a followup patch. Signed-off-by: Florian Westphal --- 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; };