FreeBSD/contrib/ntp/ntpd/refclock_wwv.c
/*
 * wwv_poll - called by the transmit procedure
 *
 * This routine keeps track of status. If no offset samples have been
 * processed during a poll interval, a timeout event is declared. If
 * errors have have occurred during the interval, they are reported as
 * well.
 */
called by the transmit procedure
This routine keeps track of status. If no offset samples have been
processed during a poll interval, a timeout event is declared. If
errors have have occurred during the interval, they are reported as
well.
called by the transmit procedure This routine keeps track of status . If no offset samples have been processed during a poll interval a timeout event is declared . If errors have have occurred during the interval they are reported as well .
static void
wwv_poll(
	int	unit,		
	struct peer *peer	
	)
{
	struct refclockproc *pp;
	struct wwvunit *up;
	pp = peer->procptr;
	up = pp->unitptr;
	if (up->errflg)
		refclock_report(peer, up->errflg);
	up->errflg = 0;
	pp->polls++;
}
static void wwv_poll ( int unit , struct peer * peer ) { struct refclockproc * pp ; struct wwvunit * up ; pp = peer -> procptr ; up = pp -> unitptr ; if ( up -> errflg ) refclock_report ( peer , up -> errflg ) ; up -> errflg = 0 ; pp -> polls ++ ; }
wwv_poll - called by the transmit procedure
 This routine keeps track of status.
wwv_poll - called by the transmit procedure This routine keeps track of status .
/* instance number (not used) */ /* peer structure pointer */