diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-16 15:04:44 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-16 15:04:44 +0000 |
commit | 69fa44735497e10ca7c49075455da1370b7d7484 (patch) | |
tree | 35a7749e2b33d5bdcbf755853873e19012781f75 /windows_port.c | |
parent | 10a035e128165a09d7d7a0958ac5c706bf41a6ab (diff) | |
download | c-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.c | 2 |
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); } |