Mailing List Archive

[PATCH 02/**] make extra_opts const
Make xtables_target->extra_opts const (xtables_match->extra_opts already is)

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
include/xtables.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: iptables/include/xtables.h
===================================================================
--- iptables.orig/include/xtables.h
+++ iptables/include/xtables.h
@@ -158,7 +158,7 @@ struct xtables_target
const struct xt_entry_target *target);

/* Pointer to list of extra command-line options */
- struct option *extra_opts;
+ const struct option *extra_opts;

/* Ignore these men behind the curtain: */
unsigned int option_offset;
Re: [PATCH 02/**] make extra_opts const [ In reply to ]
From: Jan Engelhardt <jengelh@computergmbh.de>

> Make xtables_target->extra_opts const (xtables_match->extra_opts already is)
>
> Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

I've applied, thanks.

-- Yasuyuki.