From 57af67de905c9f68b9f011b9a7cfcff12ada8012 Mon Sep 17 00:00:00 2001 From: Arushi Singhal Date: Wed, 21 Mar 2018 15:20:28 +0530 Subject: iptables: constify option struct The struct of type option is only used to initialise a field and is not modified anywhere. Signed-off-by: Arushi Singhal Signed-off-by: Pablo Neira Ayuso --- iptables/iptables-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/iptables-xml.c') diff --git a/iptables/iptables-xml.c b/iptables/iptables-xml.c index 49674ec1..69c19a60 100644 --- a/iptables/iptables-xml.c +++ b/iptables/iptables-xml.c @@ -38,7 +38,7 @@ static int verbose; /* Whether to combine actions of sequential rules with identical conditions */ static int combine; /* Keeping track of external matches and targets. */ -static struct option options[] = { +static const struct option options[] = { {"verbose", 0, NULL, 'v'}, {"combine", 0, NULL, 'c'}, {"help", 0, NULL, 'h'}, -- cgit v1.2.3