summaryrefslogtreecommitdiff
path: root/adig.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 /adig.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 'adig.c')
-rw-r--r--adig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adig.c b/adig.c
index 6a23c51..32e0721 100644
--- a/adig.c
+++ b/adig.c
@@ -289,7 +289,7 @@ int main(int argc, char **argv)
break;
tvp = ares_timeout(channel, NULL, &tv);
count = select(nfds, &read_fds, &write_fds, NULL, tvp);
- if (count < 0 && errno != EINVAL)
+ if (count < 0 && SOCKERRNO != EINVAL)
{
perror("select");
return 1;