ares_search: use ERRNO macro for portability sake
authorYang Tse <yangsita@gmail.com>
Tue, 22 Mar 2011 19:50:42 +0000 (20:50 +0100)
committerYang Tse <yangsita@gmail.com>
Tue, 22 Mar 2011 19:50:42 +0000 (20:50 +0100)
ares_search.c

index 9face5f..1877c19 100644 (file)
@@ -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: