aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares/ares_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_process.c b/ares/ares_process.c
index 533e78029..9438c4235 100644
--- a/ares/ares_process.c
+++ b/ares/ares_process.c
@@ -158,7 +158,7 @@ static void write_tcp_data(ares_channel channel, fd_set *write_fds, time_t now)
vec[n].iov_len = sendreq->len;
n++;
}
- wcount = writev(server->tcp_socket, vec, n);
+ wcount = (ssize_t)writev(server->tcp_socket, vec, n);
free(vec);
if (wcount < 0)
{