From: Martin Burnicki Date: Mon, 12 Mar 2007 09:06:55 +0000 (+0000) Subject: [Bug 795] Moved declaration of variable to top of function to avoid build error. X-Git-Tag: NTP_4_2_5P17~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57be7c0a3bcc26fc4c0edefdeed1dc74fd8fcec2;p=thirdparty%2Fntp.git [Bug 795] Moved declaration of variable to top of function to avoid build error. bk: 45f5182fiZ82YT66U6fQF6DzJ-VYLg --- diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index cbb624c9b..9972ef633 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -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))