From 283737c8567bdea21a2776d54543302a2665a049 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 28 Jul 2006 18:01:23 +0000 Subject: Replace send() and recv() with swrite() and sread() macros. --- windows_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'windows_port.c') diff --git a/windows_port.c b/windows_port.c index a2b72d5..2a326da 100644 --- a/windows_port.c +++ b/windows_port.c @@ -102,6 +102,6 @@ ares_writev (ares_socket_t s, const struct iovec *vector, size_t count) memcpy (bp, vector[i].iov_base, vector[i].iov_len); bp += vector[i].iov_len; } - return send (s, (const void*)buffer, bytes, 0); + return (int)swrite(s, buffer, bytes); } #endif /* WIN32 builds only */ -- cgit v1.2.3