From: Varsha Rao Date: Thu, 30 Nov 2017 13:48:05 +0000 (+0530) Subject: iptables: xtables-eb: Remove const qualifier from struct option X-Git-Tag: v1.6.2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=505bfa114f2e0a86473fca6353fe45828f160e65;p=thirdparty%2Fiptables.git iptables: xtables-eb: Remove const qualifier from struct option As opts is reassigned multiple times, it cannot be made constant. So remove const qualifier from structure option. This patch fixes the following warning. xtables-eb.c: In function ‘ebt_load_match_extensions’: xtables-eb.c:653:7: warning: assignment discards ‘const’ qualifier from pointer target type opts = ebt_original_options; Signed-off-by: Varsha Rao Signed-off-by: Pablo Neira Ayuso --- diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index 60ec935c..c8b5d4f3 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -247,7 +247,7 @@ static int get_current_chain(const char *chain) /* Default command line options. Do not mess around with the already * assigned numbers unless you know what you are doing */ -static const struct option ebt_original_options[] = +static struct option ebt_original_options[] = { { "append" , required_argument, 0, 'A' }, { "insert" , required_argument, 0, 'I' },