summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorArushi Singhal <arushisinghal19971997@gmail.com>2018-03-21 15:20:28 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2018-04-11 10:40:03 +0200
commit57af67de905c9f68b9f011b9a7cfcff12ada8012 (patch)
tree254cfb6459156848ad0f5ca614a5b1672a006399 /extensions
parent88231c40a933a4507f9e4900857498f5e34a9ff9 (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 'extensions')
-rw-r--r--extensions/libarpt_mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libarpt_mangle.c b/extensions/libarpt_mangle.c
index ec9b5436..0d1f140a 100644
--- a/extensions/libarpt_mangle.c
+++ b/extensions/libarpt_mangle.c
@@ -32,7 +32,7 @@ static void arpmangle_print_help(void)
#define MANGLE_DEVT '4'
#define MANGLE_TARGET '5'
-static struct option arpmangle_opts[] = {
+static const struct option arpmangle_opts[] = {
{ .name = "mangle-ip-s", .has_arg = true, .val = MANGLE_IPS },
{ .name = "mangle-ip-d", .has_arg = true, .val = MANGLE_IPT },
{ .name = "mangle-mac-s", .has_arg = true, .val = MANGLE_DEVS },