diff options
author | Yang Tse <yangsita@gmail.com> | 2006-07-28 18:01:23 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-07-28 18:01:23 +0000 |
commit | 2c81bfead5aa1eb0b9f2bc5420786696b74ff115 (patch) | |
tree | 3e27099d202f1818227ca88f6bdbf521826a3493 /ares/windows_port.c | |
parent | 77b3bc239daf75d9fb7702ee34c8e5871c47d387 (diff) |
Replace send() and recv() with swrite() and sread() macros.
Diffstat (limited to 'ares/windows_port.c')
-rw-r--r-- | ares/windows_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/windows_port.c b/ares/windows_port.c index a2b72d538..2a326da01 100644 --- a/ares/windows_port.c +++ b/ares/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 */ |