]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 795] Moved declaration of variable to top of function to avoid build error.
authorMartin Burnicki <burnicki@ntp.org>
Mon, 12 Mar 2007 09:06:55 +0000 (09:06 +0000)
committerMartin Burnicki <burnicki@ntp.org>
Mon, 12 Mar 2007 09:06:55 +0000 (09:06 +0000)
bk: 45f5182fiZ82YT66U6fQF6DzJ-VYLg

ntpd/ntp_io.c

index cbb624c9b3ea170008a4f6db54f211e35ceccea9..9972ef63300ed343362474a6b7840d0c3dc4ccd8 100644 (file)
@@ -3254,6 +3254,9 @@ findlocalcastinterface(
 {
        struct interface *interface;
        struct interface *nif = NULL;
+#ifdef INCLUDE_IPV6_MULTICAST_SUPPORT
+       isc_boolean_t want_linklocal;
+#endif 
 
        /*
         * see how kernel maps the mcast address
@@ -3266,7 +3269,7 @@ findlocalcastinterface(
        }
 
 #ifdef INCLUDE_IPV6_MULTICAST_SUPPORT
-       isc_boolean_t want_linklocal = ISC_FALSE; 
+       want_linklocal = ISC_FALSE; 
        if (addr_ismulticast(addr) && flags == INT_MULTICAST)
        {
                if (IN6_IS_ADDR_MC_LINKLOCAL(&((struct sockaddr_in6*)addr)->sin6_addr))