diff options
author | Gargi Sharma <gs051095@gmail.com> | 2017-03-28 19:42:39 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-03-28 17:28:03 +0200 |
commit | 73c2371744c08c677540d468a588586effecab2d (patch) | |
tree | e1f44074a621e4999d84071a1470e9b1b088df34 /extensions/ebt_nat.c | |
parent | 4c3e5cd3dbae3ea773e9dcca7cf019b2713af70d (diff) |
ebtables: extensions: Constify option struct
The struct of the type option is only used to initialise a field
inside the ebt_u_watcher or ebt_u_target or ebt_u_match struct and
is not modified anywhere.
Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/ebt_nat.c')
-rw-r--r-- | extensions/ebt_nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/ebt_nat.c b/extensions/ebt_nat.c index e6afbf8..00d9cd4 100644 --- a/extensions/ebt_nat.c +++ b/extensions/ebt_nat.c @@ -21,7 +21,7 @@ static int to_source_supplied, to_dest_supplied; #define NAT_S_TARGET '2' #define NAT_D_TARGET '2' #define NAT_S_ARP '3' -static struct option opts_s[] = +static const struct option opts_s[] = { { "to-source" , required_argument, 0, NAT_S }, { "to-src" , required_argument, 0, NAT_S }, @@ -30,7 +30,7 @@ static struct option opts_s[] = { 0 } }; -static struct option opts_d[] = +static const struct option opts_d[] = { { "to-destination", required_argument, 0, NAT_D }, { "to-dst" , required_argument, 0, NAT_D }, |