]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Fix mismatched braces breaking --enable-leap-smear builds (my mistake).
authorDave Hart <hart@ntp.org>
Mon, 8 Apr 2024 04:35:34 +0000 (04:35 +0000)
committerDave Hart <hart@ntp.org>
Mon, 8 Apr 2024 04:35:34 +0000 (04:35 +0000)
Test --enable-leap-smear in one of the flock-build variants.

bk: 661374169uAD1ZIvkbPrfzzQHIgqOg

flock-build
ntpd/ntp_timer.c

index f01c97b6b9fa112e980face714a481b8e959401d..14767b934e17367411c548ed44ca7a72a6083799 100755 (executable)
@@ -34,23 +34,11 @@ case "$PARALLEL_BUILDS" in
  *)  echo Launching $PARALLEL_BUILDS parallel builds on each machine
 esac
 
-# Backroom:
-#   barnstable    freebsd-6.1
-#   beauregard    freebsd-6.0
-# X churchy       alpha-dec-osf5.1
-#   deacon        sparc-sun-solaris2.10
-#   grundoon      freebsd-6.2
-#   howland       freebsd-6.1
-# o macabre       freebsd-6.1-STABLE
-# o mort          freebsd-6.1
-#   whimsy        sparc-sun-solaris2.10
-
 # Campus:
 # * baldwin       sparc-sun-solaris2.10
 # * bridgeport    sparc-sun-solaris2.10
-# * malarky       sparc-sun-solaris2.10
 # * pogo          sparc-sun-solaris2.10
-# * rackety       freebsd-6.1
+# * rackety       sparc-sun-solaris2.10
 
 if [ ! -r sntp/libevent/build-aux/config.guess ] ; then
        echo "Error: bootstrap required." 1>&2 && exit 1
@@ -81,7 +69,7 @@ do
         0)
            ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
            ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --disable-debugging --disable-saveconfig $BUILD_ARGS" &
-           ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto --enable-c99-snprintf $BUILD_ARGS" &
+           ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto --enable-c99-snprintf --enable-leap-smear $BUILD_ARGS" &
            ssh $i "cd $c_d ; ./build $SIG        $STD --disable-all-clocks --disable-autokey --without-sntp --disable-thread-support $BUILD_ARGS" &
            ;;
         1)
@@ -109,7 +97,7 @@ do
                        echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
                        [ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
 
-                       ./build $SIG $PARSE $STD --without-crypto --enable-c99-snprintf $BUILD_ARGS &
+                       ./build $SIG $PARSE $STD --without-crypto --enable-c99-snprintf --enable-leap-smear $BUILD_ARGS &
 
                        COUNT=\`expr \$COUNT + 1\`
                        echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
index 17c1024ca4d4f164fe8124623df4f04edc4c2a13..c8164d798b049a16de8ef757e13cdc6fa0afce60 100644 (file)
@@ -611,8 +611,9 @@ check_leapsec(
                                }
                        } else {
                                if (leap_smear.interval) {
-                               DPRINTF(1, ("*** leapsec_query: clearing leap_smear interval\n"));
-                               leap_smear.interval = 0;
+                                       DPRINTF(1, ("*** leapsec_query: clearing leap_smear interval\n"));
+                                       leap_smear.interval = 0;
+                               }
                        }
 
                        if (leap_smear.interval) {