Loading ares/ares_gethostbyaddr.c +1 −3 Original line number Diff line number Diff line Loading @@ -188,6 +188,7 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host) int status; #ifdef WIN32 int error; char PATH_HOSTS[MAX_PATH]; if (IS_NT()) { char tmp[MAX_PATH]; Loading Loading @@ -216,8 +217,6 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host) return ARES_ENOTFOUND; #endif int error; fp = fopen(PATH_HOSTS, "r"); if (!fp) { Loading @@ -226,7 +225,6 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host) { case ENOENT: return ARES_ENOTFOUND; break; default: DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n", error, strerror(error))); Loading ares/ares_search.c +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <errno.h> #if defined(WIN32) && !defined(WATT32) #include "nameser.h" Loading Loading
ares/ares_gethostbyaddr.c +1 −3 Original line number Diff line number Diff line Loading @@ -188,6 +188,7 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host) int status; #ifdef WIN32 int error; char PATH_HOSTS[MAX_PATH]; if (IS_NT()) { char tmp[MAX_PATH]; Loading Loading @@ -216,8 +217,6 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host) return ARES_ENOTFOUND; #endif int error; fp = fopen(PATH_HOSTS, "r"); if (!fp) { Loading @@ -226,7 +225,6 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host) { case ENOENT: return ARES_ENOTFOUND; break; default: DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n", error, strerror(error))); Loading
ares/ares_search.c +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <errno.h> #if defined(WIN32) && !defined(WATT32) #include "nameser.h" Loading