]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Francesco Chemolli <kinkie@squid-cache.org>
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 6 Dec 2009 01:29:37 +0000 (14:29 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 6 Dec 2009 01:29:37 +0000 (14:29 +1300)
Dnsserver and resolver fixes.

A variable was not defined under certain autoconf-related conditions.

src/dnsserver.cc

index e017c46726f9135fcd95819c15f54492d8a347c1..9cf1cecabe57cf0105e3cca4777b871d2bbb07dd 100644 (file)
@@ -276,11 +276,10 @@ main(int argc, char *argv[])
     char request[512];
     char *t = NULL;
     int c;
-#if HAVE_RES_INIT
-
     int opt_s = 0;
-#if HAVE_RES_NSADDR_LIST || HAVE_RES_NS_LIST
 
+#if HAVE_RES_INIT
+#if HAVE_RES_NSADDR_LIST || HAVE_RES_NS_LIST
     extern char *optarg;
 #endif
 #endif
@@ -288,7 +287,6 @@ main(int argc, char *argv[])
     safe_inet_addr("255.255.255.255", &no_addr);
 
 #if HAVE_RES_INIT
-
     res_init();
 #ifdef RES_DEFAULT