From 00696591b1f2582cb0c5a8c1887c2f24b6aafedd Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 31 Jan 2011 02:39:46 +0100 Subject: iptables: remove bogus address-of Casts are bad. &curtable is actually of type char (*)[], which is quite different from what add_argv expects. Signed-off-by: Jan Engelhardt --- ip6tables-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ip6tables-restore.c') diff --git a/ip6tables-restore.c b/ip6tables-restore.c index 9948cd63..d8a45da9 100644 --- a/ip6tables-restore.c +++ b/ip6tables-restore.c @@ -365,7 +365,7 @@ int main(int argc, char *argv[]) add_argv(argv[0]); add_argv("-t"); - add_argv((char *) &curtable); + add_argv(curtable); if (counters && pcnt && bcnt) { add_argv("--set-counters"); -- cgit v1.2.3