From: Juergen Perlinger Date: Fri, 8 May 2015 21:57:16 +0000 (+0200) Subject: * [Bug 2745] ntpd -x steps clock on leap second X-Git-Tag: NTP_4_2_8P3_RC1~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3c4fb0cef24db9b2dfa77e4ffff34e6d22344a;p=thirdparty%2Fntp.git * [Bug 2745] ntpd -x steps clock on leap second removed dead test code block in ntpd/ntp_leapsec.c bk: 554d313cbgegTiWSzapo-kEWwZFLeg --- diff --git a/ntpd/ntp_leapsec.c b/ntpd/ntp_leapsec.c index 09185b5cc..2cf7fab82 100644 --- a/ntpd/ntp_leapsec.c +++ b/ntpd/ntp_leapsec.c @@ -291,14 +291,6 @@ leapsec_query( pt = leapsec_get_table(FALSE); memset(qr, 0, sizeof(leap_result_t)); -#if 0 - printf("ebase=%s dtime=%s\n", lstostr(&pt->head.ebase), lstostr(&pt->head.dtime)); - if (ucmpv64(&pt->head.dtime, &pt->head.ebase) <= 0) { - /* Initial state and empty table. Fix it. */ - reload_limits(pt, &ts64); - printf("\n\n PRESET INITAL CONDITION\n\n\n"); - } else -#endif if (ucmpv64(&ts64, &pt->head.ebase) < 0) { /* Most likely after leap frame reset. Could also be a * backstep of the system clock. Anyway, get the new