diff --git a/ares_process.c b/ares_process.c index 533e7802..9438c423 100644 --- a/ares_process.c +++ b/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) {