From 82f6108bfbc7e48ca88650297c6a1c6ede0e1c9c Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 11 Nov 2011 14:02:09 +1100 Subject: [PATCH] Rename ctdb_control_destructor() to ctdb_client_control_destructor() This avoids a name clash with a slightly different function in ctdb_control.c. This is in the context of wanting to run CCAN-style tests where most of the ctdbd code is just included in the test program. Signed-off-by: Martin Schwenke --- client/ctdb_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ctdb_client.c b/client/ctdb_client.c index 9705c288..73c68a4d 100644 --- a/client/ctdb_client.c +++ b/client/ctdb_client.c @@ -978,7 +978,7 @@ static void ctdb_client_reply_control(struct ctdb_context *ctdb, /* destroy a ctdb_control in client */ -static int ctdb_control_destructor(struct ctdb_client_control_state *state) +static int ctdb_client_control_destructor(struct ctdb_client_control_state *state) { ctdb_reqid_remove(state->ctdb, state->reqid); return 0; @@ -1035,7 +1035,7 @@ struct ctdb_client_control_state *ctdb_control_send(struct ctdb_context *ctdb, state->state = CTDB_CONTROL_WAIT; state->errormsg = NULL; - talloc_set_destructor(state, ctdb_control_destructor); + talloc_set_destructor(state, ctdb_client_control_destructor); len = offsetof(struct ctdb_req_control, data) + data.dsize; c = ctdbd_allocate_pkt(ctdb, state, CTDB_REQ_CONTROL, -- 2.34.1