]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
BBF to the rescue finding typos in #ifdef'd code
authorDave Hart <hart@ntp.org>
Mon, 22 Nov 2010 07:03:31 +0000 (07:03 +0000)
committerDave Hart <hart@ntp.org>
Mon, 22 Nov 2010 07:03:31 +0000 (07:03 +0000)
bk: 4cea15c3nTTsuuI2qSmUO5ys1kAgsg

ntpd/ntp_io.c
sntp/networking.c

index 4144e1f86446f6e8d19834258c4065d04eedc3c7..5b7b7d86a90eb4413e9b49edae9449f9359ac798 100644 (file)
@@ -906,7 +906,7 @@ add_interface(
                    (IN6_IS_ADDR_LINKLOCAL(PSOCK_ADDR6(addr)) ||
                     IN6_IS_ADDR_SITELOCAL(PSOCK_ADDR6(addr))));
 #else
-       ep_linklocal = FALSE;
+       ep_local = FALSE;
 #endif
        /*
         * If we have multiple local addresses on the same network
index d17874eb90c86049c0255d249e3a4198428e0af4..31bc5f8fdf91d1b2acdbe350b89d72e107954b02 100644 (file)
@@ -230,7 +230,8 @@ recv_bcst_data (
                        }
                        return BROADCAST_FAILED;
                }
-               if (setsockopt(rsock, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mdevadr6, sizeof(mdevadr)) < 0) {
+               if (setsockopt(rsock, IPPROTO_IPV6, IPV6_JOIN_GROUP,
+                              &mdevadr6, sizeof(mdevadr6)) < 0) {
                        if (ENABLED_OPT(NORMALVERBOSE)) {
                                buf = ss_to_str(sas); 
                                printf("sntp recv_bcst_data: Couldn't join group for %s\n", buf);