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 f34ae9e5c..a3a25ba48 100644
--- a/ares/ares_process.c
+++ b/ares/ares_process.c
@@ -160,7 +160,7 @@ static void write_tcp_data(ares_channel channel, fd_set *write_fds, time_t now)
vec[n].iov_len = sendreq->len;
n++;
}
- wcount = (ssize_t)writev(server->tcp_socket, vec, n);
+ wcount = (ssize_t)writev(server->tcp_socket, vec, (int)n);
free(vec);
if (wcount < 0)
{