FreeBSD/contrib/ntp/ntpd/ntp_leapsec.c
/* [internal] Reset / init the time window in the leap processor to
 * force reload on next query. Since a leap transition cannot take place
 * at an odd second, the value chosen avoids spurious leap transition
 * triggers. Making all three times equal forces a reload. Using the
 * maximum value for unsigned 64 bits makes finding the next leap frame
 * a bit easier.
 */
[internal] Reset / init the time window in the leap processor to
force reload on next query. Since a leap transition cannot take place
at an odd second, the value chosen avoids spurious leap transition
triggers. Making all three times equal forces a reload. Using the
maximum value for unsigned 64 bits makes finding the next leap frame
a bit easier.
[ internal ] Reset / init the time window in the leap processor to force reload on next query . Since a leap transition cannot take place at an odd second the value chosen avoids spurious leap transition triggers . Making all three times equal forces a reload . Using the maximum value for unsigned 64 bits makes finding the next leap frame a bit easier .
static void
reset_times(
	leap_table_t * pt)
{
	memset(&pt->head.ebase, 0xFF, sizeof(vint64));
	pt->head.stime = pt->head.ebase;
	pt->head.ttime = pt->head.ebase;
	pt->head.dtime = pt->head.ebase;
}
static void reset_times ( leap_table_t * pt ) { memset ( & pt -> head . ebase , 0xFF , sizeof ( vint64 ) ) ; pt -> head . stime = pt -> head . ebase ; pt -> head . ttime = pt -> head . ebase ; pt -> head . dtime = pt -> head . ebase ; }
[internal] Reset / init the time window in the leap processor to
 force reload on next query.
[ internal ] Reset / init the time window in the leap processor to force reload on next query .