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:
parent
495cc4ed22
commit
43145c88fe
@ -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;
|
||||
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user