async_rec/async_sock.c - add an additional "const"
[ira/wip.git] / lib / async_req / async_sock.c
index 7ea66f57fedced66f8e7f8cbd202fc979ffd00fc..86053d94e87952b40bed3059ae8725e5aee317da 100644 (file)
@@ -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;