]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows: fix error: variable 'h_error' set but not used
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 9 Sep 2013 06:09:27 +0000 (00:09 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 9 Sep 2013 06:09:27 +0000 (00:09 -0600)
compat/getnameinfo.c

index 76c6ec28e1ffa2f26f0dad7c85c4ece101d54aea..59368aced8b6b7192695f9bcfc259ebf6e29ec42 100644 (file)
@@ -158,7 +158,6 @@ int flags;
     int family, i;
     const char *addr;
     uint32_t v4a;
-    int h_error;
     char numserv[512];
 
     if (sa == NULL)
@@ -260,14 +259,17 @@ found:
         goto numeric;
     } else {
 #if USE_GETIPNODEBY
+        int h_error = 0;
         hp = getipnodebyaddr(addr, afd->a_addrlen, afd->a_af, &h_error);
 #else
         hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af);
+#if 0 // getnameinfo.c:161:9: error: variable 'h_error' set but not used
 #if HAVE_H_ERRNO
         h_error = h_errno;
 #else
         h_error = EINVAL;
 #endif
+#endif /* 0 */
 #endif
 
         if (hp) {