summaryrefslogtreecommitdiffstats
path: root/extensions/ebt_mark.c
diff options
context:
space:
mode:
authorGargi Sharma <gs051095@gmail.com>2017-03-28 19:42:39 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2017-03-28 17:28:03 +0200
commit73c2371744c08c677540d468a588586effecab2d (patch)
treee1f44074a621e4999d84071a1470e9b1b088df34 /extensions/ebt_mark.c
parent4c3e5cd3dbae3ea773e9dcca7cf019b2713af70d (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_mark.c')
-rw-r--r--extensions/ebt_mark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/ebt_mark.c b/extensions/ebt_mark.c
index 5776b1c..4cf1378 100644
--- a/extensions/ebt_mark.c
+++ b/extensions/ebt_mark.c
@@ -20,7 +20,7 @@ static int mark_supplied;
#define MARK_ORMARK '3'
#define MARK_ANDMARK '4'
#define MARK_XORMARK '5'
-static struct option opts[] =
+static const struct option opts[] =
{
{ "mark-target" , required_argument, 0, MARK_TARGET },
/* an oldtime messup, we should have always used the scheme