From fb7987171cb42ac0f9397135d6ee72bdf50c03a9 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 14 Jul 2006 11:04:19 +0000 Subject: [PATCH] Fix compiler warning --- ares_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {