From b115da2230944aa13ea777ccc65bf978e257e4cb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 7 Feb 2007 00:54:33 +0000 Subject: r21208: fix a crash bug caused by r21205 please test patches, even if they look trivial! (This used to be commit 8134a628f06f0df2ee94612854e0fb3e2efc2eb8) --- source4/torture/rpc/rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/torture/rpc/rpc.c b/source4/torture/rpc/rpc.c index 1bb2047340..6ac457d357 100644 --- a/source4/torture/rpc/rpc.c +++ b/source4/torture/rpc/rpc.c @@ -117,7 +117,7 @@ _PUBLIC_ struct torture_tcase *torture_suite_add_rpc_iface_tcase(struct torture_ tcase->setup = torture_rpc_setup; tcase->teardown = torture_rpc_teardown; - tcase->data = (void *)&table; + tcase->data = discard_const(table); return tcase; } -- cgit