1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb-common: Avoid using void ** argument

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2017-11-09 16:37:15 +11:00 committed by Martin Schwenke
parent 495cc4ed22
commit 43145c88fe
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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__ */