From bd8d4637a3fe71ac911c1ff54b30beca47f81f76 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/ares_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ares/ares_process.c b/ares/ares_process.c index 533e78029d..9438c42357 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) {