All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] extensions: libarpt_mangle.c : Constify option struct
@ 2017-04-02  7:05 Arushi Singhal
  2017-04-02  7:05 ` [PATCH 2/2] iptables: iptables: " Arushi Singhal
  0 siblings, 1 reply; 3+ messages in thread
From: Arushi Singhal @ 2017-04-02  7:05 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Arushi Singhal

The struct arpmangle_opts of the type option is only used to
initialise a field inside the xtables_target struct and is
not modified anywhere.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
---
 extensions/libarpt_mangle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extensions/libarpt_mangle.c b/extensions/libarpt_mangle.c
index fdd2104..358b35d 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 },
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-07 18:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-02  7:05 [PATCH 1/2] extensions: libarpt_mangle.c : Constify option struct Arushi Singhal
2017-04-02  7:05 ` [PATCH 2/2] iptables: iptables: " Arushi Singhal
2017-04-07 18:33   ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.