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_arpreply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/ebt_arpreply.c') diff --git a/extensions/ebt_arpreply.c b/extensions/ebt_arpreply.c index c3757f3..51eda66 100644 --- a/extensions/ebt_arpreply.c +++ b/extensions/ebt_arpreply.c @@ -19,7 +19,7 @@ static int mac_supplied; #define REPLY_MAC '1' #define REPLY_TARGET '2' -static struct option opts[] = +static const struct option opts[] = { { "arpreply-mac" , required_argument, 0, REPLY_MAC }, { "arpreply-target" , required_argument, 0, REPLY_TARGET }, -- cgit v1.2.3