]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Fix compiler warnings.
authorVladislav Grishenko <themiron@mail.ru>
Tue, 26 Nov 2013 11:08:21 +0000 (11:08 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Tue, 26 Nov 2013 11:08:21 +0000 (11:08 +0000)
src/forward.c
src/network.c

index 7ed88801b40ff8f23c7cc75b1e4c33fcd40aeba6..d967348e980556353648d7d7f2514df850526887 100644 (file)
@@ -675,8 +675,10 @@ void receive_query(struct listener *listen, time_t now)
   struct in_addr netmask, dst_addr_4;
   size_t m;
   ssize_t n;
-  int if_index = 0;
-  int local_auth = 0, auth_dns = 0;
+  int if_index = 0, auth_dns = 0;
+#ifdef HAVE_AUTH
+  int local_auth = 0;
+#endif
   struct iovec iov[1];
   struct msghdr msg;
   struct cmsghdr *cmptr;
@@ -916,7 +918,9 @@ unsigned char *tcp_request(int confd, time_t now,
 {
   size_t size = 0;
   int norebind = 0;
+#ifdef HAVE_AUTH
   int local_auth = 0;
+#endif
   int checking_disabled, check_subnet;
   size_t m;
   unsigned short qtype;
index 5454d3134acfdd875d47398dfb4a19e803838923..b9d724712738a5aec4cdcdb425fc1dcb93ec5060 100644 (file)
@@ -252,6 +252,8 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
   struct iname *tmp;
 #endif
 
+  (void)prefixlen;
+
   if (!indextoname(param->fd, if_index, ifr.ifr_name) ||
       ioctl(param->fd, SIOCGIFFLAGS, &ifr) == -1)
     return 0;
@@ -318,7 +320,8 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
                    {
                      al->next = zone->subnet;
                      zone->subnet = al;
-                     al->prefixlen = prefixlen;al->addr.addr.addr6 = addr->in6.sin6_addr;
+                     al->prefixlen = prefixlen;
+                     al->addr.addr.addr6 = addr->in6.sin6_addr;
                      al->flags = ADDRLIST_IPV6;
                    }
                }