diff options
author | Arushi Singhal <arushisinghal19971997@gmail.com> | 2018-03-21 15:20:28 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-11 10:40:03 +0200 |
commit | 57af67de905c9f68b9f011b9a7cfcff12ada8012 (patch) | |
tree | 254cfb6459156848ad0f5ca614a5b1672a006399 /iptables | |
parent | 88231c40a933a4507f9e4900857498f5e34a9ff9 (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')
-rw-r--r-- | iptables/iptables-xml.c | 2 |
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'}, |