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 --- iptables-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables-restore.c') diff --git a/iptables-restore.c b/iptables-restore.c index 519d4800..cd23cfa2 100644 --- a/iptables-restore.c +++ b/iptables-restore.c @@ -370,7 +370,7 @@ 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