From 92acfc07998da1546182579ad12a063f025c9286 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 24 May 2006 07:35:06 +0000 Subject: r15855: more talloc_set_destructor() typesafe fixes. nearly done ... (This used to be commit 396d82a231b6e3a91178db08b706626d4d4b420c) --- source4/wrepl_server/wrepl_in_connection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/wrepl_server/wrepl_in_connection.c') diff --git a/source4/wrepl_server/wrepl_in_connection.c b/source4/wrepl_server/wrepl_in_connection.c index dabb550048..fc44b8912c 100644 --- a/source4/wrepl_server/wrepl_in_connection.c +++ b/source4/wrepl_server/wrepl_in_connection.c @@ -38,9 +38,8 @@ void wreplsrv_terminate_in_connection(struct wreplsrv_in_connection *wreplconn, stream_terminate_connection(wreplconn->conn, reason); } -static int terminate_after_send_destructor(void *ptr) +static int terminate_after_send_destructor(struct wreplsrv_in_connection **tas) { - struct wreplsrv_in_connection **tas = talloc_get_type(ptr, struct wreplsrv_in_connection *); wreplsrv_terminate_in_connection(*tas, "wreplsrv_in_connection: terminate_after_send"); return 0; } -- cgit