compiler warning fix

This commit is contained in:
Yang Tse
2007-02-17 11:34:33 +00:00
parent 8595ddf7c4
commit 675bdce3b2
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -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)));