From 43145c88fe75d57ff66ea95d9db0ce503a2e8c03 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Thu, 9 Nov 2017 16:37:15 +1100 Subject: [PATCH] ctdb-common: Avoid using void ** argument Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/common/sock_client.c | 4 ++-- ctdb/common/sock_client.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ctdb/common/sock_client.c b/ctdb/common/sock_client.c index e5f993e085..ced705042a 100644 --- a/ctdb/common/sock_client.c +++ b/ctdb/common/sock_client.c @@ -311,7 +311,7 @@ static void sock_client_msg_reply(struct sock_client_context *sockc, } bool sock_client_msg_recv(struct tevent_req *req, int *perr, - TALLOC_CTX *mem_ctx, void **reply) + TALLOC_CTX *mem_ctx, void *reply) { struct sock_client_msg_state *state = tevent_req_data( req, struct sock_client_msg_state); @@ -325,7 +325,7 @@ bool sock_client_msg_recv(struct tevent_req *req, int *perr, } if (reply != NULL) { - *reply = talloc_steal(mem_ctx, state->reply); + *(void **)reply = talloc_steal(mem_ctx, state->reply); } return true; diff --git a/ctdb/common/sock_client.h b/ctdb/common/sock_client.h index c640767c3a..c5822a0ac0 100644 --- a/ctdb/common/sock_client.h +++ b/ctdb/common/sock_client.h @@ -124,6 +124,6 @@ struct tevent_req *sock_client_msg_send(TALLOC_CTX *mem_ctx, * @return true on success, false on failure */ bool sock_client_msg_recv(struct tevent_req *req, int *perr, - TALLOC_CTX *mem_ctx, void **reply); + TALLOC_CTX *mem_ctx, void *reply); #endif /* __CTDB_SOCK_CLIENT_H__ */ -- 2.34.1