diff options
| author | Yang Tse <yangsita@gmail.com> | 2007-02-17 11:34:33 +0000 | 
|---|---|---|
| committer | Yang Tse <yangsita@gmail.com> | 2007-02-17 11:34:33 +0000 | 
| commit | 8103915797062626db15f840f975cf4bafcc328c (patch) | |
| tree | 49f9a2ff37b78c9eafebb3eecb8365b8913f5a98 /ares/ares_gethostbyaddr.c | |
| parent | c461254dea3a876e2d6aed3d4e8be5d26285efdb (diff) | |
compiler warning fix
Diffstat (limited to 'ares/ares_gethostbyaddr.c')
| -rw-r--r-- | ares/ares_gethostbyaddr.c | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c index 6c80eb941..777d2f7a0 100644 --- a/ares/ares_gethostbyaddr.c +++ b/ares/ares_gethostbyaddr.c @@ -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]; @@ -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)      { @@ -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))); | 
