diff options
author | Phil Sutter <phil@nwl.cc> | 2018-07-19 18:32:07 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-19 23:11:53 +0200 |
commit | de8574ac79c83d4575e2613472c1978a5154bdb7 (patch) | |
tree | 6469775ecbb630c03bf10dd1815a0e99035aefff | |
parent | 6f60f22c488675ef9c9e02ca4abc9dc0b210f6a6 (diff) |
xtables: parameter to add_argv() may be const
Since the function doesn't alter the passed buffer, make it const.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r-- | iptables/xtables-restore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index f127093d..f9392457 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -78,7 +78,7 @@ static int newargc; /* function adding one argument to newargv, updating newargc * returns true if argument added, false otherwise */ -static int add_argv(char *what) { +static int add_argv(const char *what) { DEBUGP("add_argv: %s\n", what); if (what && newargc + 1 < ARRAY_SIZE(newargv)) { newargv[newargc] = strdup(what); |