]> granicus.if.org Git - curl/commitdiff
compiler warning fix
authorYang Tse <yangsita@gmail.com>
Sat, 17 Feb 2007 11:59:08 +0000 (11:59 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 17 Feb 2007 11:59:08 +0000 (11:59 +0000)
ares/ares_gethostbyaddr.c

index 777d2f7a065954a233ce9bbda03ddba244588c72..0faeaec2aed2fa730d53329bddbd21ac92bcfcf2 100644 (file)
@@ -186,9 +186,9 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host)
 {
   FILE *fp;
   int status;
+  int error;
 
 #ifdef WIN32
-  int error;
   char PATH_HOSTS[MAX_PATH];
   if (IS_NT()) {
     char tmp[MAX_PATH];