]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
* [Bug 2745] ntpd -x steps clock on leap second
authorJuergen Perlinger <perlinger@ntp.org>
Fri, 8 May 2015 21:57:16 +0000 (23:57 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Fri, 8 May 2015 21:57:16 +0000 (23:57 +0200)
   removed dead test code block in ntpd/ntp_leapsec.c

bk: 554d313cbgegTiWSzapo-kEWwZFLeg

ntpd/ntp_leapsec.c

index 09185b5ccad3cce957146d55e5580956b1bd68f8..2cf7fab82387be75638980950ee115a045072bf0 100644 (file)
@@ -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