summaryrefslogtreecommitdiffstats
path: root/iptables/iptables-xml.c
diff options
context:
space:
mode:
authorArushi Singhal <arushisinghal19971997@gmail.com>2018-03-21 15:20:28 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2018-04-11 10:40:03 +0200
commit57af67de905c9f68b9f011b9a7cfcff12ada8012 (patch)
tree254cfb6459156848ad0f5ca614a5b1672a006399 /iptables/iptables-xml.c
parent88231c40a933a4507f9e4900857498f5e34a9ff9 (diff)
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 <arushisinghal19971997@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/iptables-xml.c')
-rw-r--r--iptables/iptables-xml.c2
1 files changed, 1 insertions, 1 deletions
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'},