From 73c2371744c08c677540d468a588586effecab2d Mon Sep 17 00:00:00 2001 From: Gargi Sharma Date: Tue, 28 Mar 2017 19:42:39 +0530 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- extensions/ebt_inat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/ebt_inat.c') diff --git a/extensions/ebt_inat.c b/extensions/ebt_inat.c index 1aa9435..681975d 100644 --- a/extensions/ebt_inat.c +++ b/extensions/ebt_inat.c @@ -23,7 +23,7 @@ static int s_sub_supplied, d_sub_supplied; #define NAT_D_SUB '2' #define NAT_S_TARGET '3' #define NAT_D_TARGET '3' -static struct option opts_s[] = +static const struct option opts_s[] = { { "isnat-list" , required_argument, 0, NAT_S }, { "isnat-sub" , required_argument, 0, NAT_S_SUB }, @@ -31,7 +31,7 @@ static struct option opts_s[] = { 0 } }; -static struct option opts_d[] = +static const struct option opts_d[] = { { "idnat-list" , required_argument, 0, NAT_D }, { "idnat-sub" , required_argument, 0, NAT_D_SUB }, -- cgit v1.2.3