summaryrefslogtreecommitdiff
path: root/lib/async_req
diff options
context:
space:
mode:
Diffstat (limited to 'lib/async_req')
-rw-r--r--lib/async_req/async_sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c
index 7ea66f57fe..86053d94e8 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -104,7 +104,8 @@ static void sendto_handler(struct tevent_context *ev,
tevent_req_data(req, struct sendto_state);
state->sent = sendto(state->fd, state->buf, state->len, state->flags,
- (struct sockaddr *)state->addr, state->addr_len);
+ (const struct sockaddr *)state->addr,
+ state->addr_len);
if ((state->sent == -1) && (errno == EINTR)) {
/* retry */
return;