summaryrefslogtreecommitdiff
path: root/windows_port.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-16 15:04:44 +0000
committerYang Tse <yangsita@gmail.com>2007-02-16 15:04:44 +0000
commit69fa44735497e10ca7c49075455da1370b7d7484 (patch)
tree35a7749e2b33d5bdcbf755853873e19012781f75 /windows_port.c
parent10a035e128165a09d7d7a0958ac5c706bf41a6ab (diff)
downloadc-ares-69fa44735497e10ca7c49075455da1370b7d7484.tar.gz
c-ares-69fa44735497e10ca7c49075455da1370b7d7484.tar.bz2
c-ares-69fa44735497e10ca7c49075455da1370b7d7484.zip
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
Diffstat (limited to 'windows_port.c')
-rw-r--r--windows_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/windows_port.c b/windows_port.c
index dabe0bc..d9c358e 100644
--- a/windows_port.c
+++ b/windows_port.c
@@ -105,7 +105,7 @@ ares_writev (ares_socket_t s, const struct iovec *vector, size_t count)
buffer = bp = (char*) alloca (bytes);
if (!buffer)
{
- errno = ENOMEM;
+ SET_ERRNO(ENOMEM);
return (-1);
}