summaryrefslogtreecommitdiff
path: root/ares_search.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-03-22 20:50:42 +0100
committerYang Tse <yangsita@gmail.com>2011-03-22 20:50:42 +0100
commitc7ce7c7d4597300e7ee4079192da3c02d567223f (patch)
treed0d2810155cea73f66ab14e3152fec30b4d131e6 /ares_search.c
parent9099a9eb0c7166ed93d57bbee227ff2ff28053a3 (diff)
downloadc-ares-c7ce7c7d4597300e7ee4079192da3c02d567223f.tar.gz
c-ares-c7ce7c7d4597300e7ee4079192da3c02d567223f.tar.bz2
c-ares-c7ce7c7d4597300e7ee4079192da3c02d567223f.zip
ares_search: use ERRNO macro for portability sake
Diffstat (limited to 'ares_search.c')
-rw-r--r--ares_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_search.c b/ares_search.c
index 9face5f..1877c19 100644
--- a/ares_search.c
+++ b/ares_search.c
@@ -291,7 +291,7 @@ static int single_domain(ares_channel channel, const char *name, char **s)
}
else
{
- error = errno;
+ error = ERRNO;
switch(error)
{
case ENOENT: