diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-11-09 16:37:15 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-12-13 08:48:18 +0100 |
commit | 43145c88fe75d57ff66ea95d9db0ce503a2e8c03 (patch) | |
tree | 585e5b1216d2f3a63a9e65c57e9fb64907ce20a8 /ctdb/common | |
parent | 495cc4ed2255b334fa6fa75424add7c43575ab74 (diff) | |
download | samba-43145c88fe75d57ff66ea95d9db0ce503a2e8c03.tar.gz |
ctdb-common: Avoid using void ** argument
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/common')
-rw-r--r-- | ctdb/common/sock_client.c | 4 | ||||
-rw-r--r-- | 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 e5f993e085c..ced705042a4 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 c640767c3a7..c5822a0ac01 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__ */ |