Re: [PATCH] iptables: Constify option struct

2017-10-04 Thread Pablo Neira Ayuso
On Wed, Sep 27, 2017 at 05:14:52PM +0530, Harsha Sharma wrote: > The struct of type option is only used to initialise a field inside > the xtables_globals struct and is not modified anywhere. > Done using following coccinelle semantic patch Applied, thanks.

[PATCH] iptables: Constify option struct

2017-09-27 Thread Harsha Sharma
The struct of type option is only used to initialise a field inside the xtables_globals struct and is not modified anywhere. Done using following coccinelle semantic patch @r1 disable optional_qualifier@ identifier s,i; position p; @@ static struct option i@p[] ={...}; @ok1@ identifier r1.i; exp