From: Frank Kardel Date: Sat, 26 May 2007 08:00:03 +0000 (+0000) Subject: ntp_io.c: X-Git-Tag: NTP_4_2_4P2_RC4~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7077d358e9cd8943548694f46c4aab1cea972311;p=thirdparty%2Fntp.git ntp_io.c: [Bug 795] Moved declaration of variable to top of function. ChangeLog: [Bug 795] Moved declaration of variable to top of function. bk: 4657e90339frZDP69qx-lCIY-Z_tEg --- diff --git a/ChangeLog b/ChangeLog index 1ff648547..f5b3b1563 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 795] Moved declaration of variable to top of function. * [Bug 789] Fix multicast client crypto authentication and make sure arriving multicast packets do not disturb the autokey dance. * [Bug 785] improve handling of multicast interfaces diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index d7e52a70a..33b757d82 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))