From 57af67de905c9f68b9f011b9a7cfcff12ada8012 Mon Sep 17 00:00:00 2001 From: Arushi Singhal Date: Wed, 21 Mar 2018 15:20:28 +0530 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- extensions/libarpt_mangle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/libarpt_mangle.c') 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 }, -- cgit v1.2.3