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 | 283737c8567bdea21a2776d54543302a2665a049 (patch) | |
tree | 4dc448325901e72b7c4c978ce4b5ce2fa1d02f0a /windows_port.c | |
parent | b05a63758cd945d6022d373933f78b726832d581 (diff) | |
download | c-ares-283737c8567bdea21a2776d54543302a2665a049.tar.gz c-ares-283737c8567bdea21a2776d54543302a2665a049.tar.bz2 c-ares-283737c8567bdea21a2776d54543302a2665a049.zip |
Replace send() and recv() with swrite() and sread() macros.
Diffstat (limited to 'windows_port.c')
-rw-r--r-- | windows_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |