struct refclockproc *pp;
struct peer *peer;
- int sync; /* synchronization indicator */
+ int synch; /* synchhronization indicator */
int DoW; /* Dow */
int day, month; /* ddd conversion */
#else
"%*c%1x%1x%2d%2d%2d%2d%2d%2d", /* stx...cr,lf,etx */
#endif
- &sync,
+ &synch,
&DoW,
&pp->hour,
&pp->minute,
#if 0
wsprintf(pp->a_lastcode,
"STATUS: %1X%1X, DATE: %02d.%02d.%04d TIME: %02d:%02d:%02d",
- sync,
+ synch,
DoW,
day,
month,
pp->second);
pp->lencode = strlen(pp->a_lastcode);
- if ((sync && 0xc) == 0 ){ /* time ok? */
+ if ((synch && 0xc) == 0 ){ /* time ok? */
refclock_report(peer, CEVNT_BADTIME);
pp->leap = LEAP_NOTINSYNC;
return;
/*
* If clock has no valid status then report error and exit
*/
- if ((sync & HOPF_OPMODE) == HOPF_INVALID ){ /* time ok? */
+ if ((synch & HOPF_OPMODE) == HOPF_INVALID ){ /* time ok? */
refclock_report(peer, CEVNT_BADTIME);
pp->leap = LEAP_NOTINSYNC;
return;
* if CLK_FLAG1 is set, sychronize even if no radio operation
*/
- if ((sync & HOPF_OPMODE) == HOPF_INTERNAL){
+ if ((synch & HOPF_OPMODE) == HOPF_INTERNAL){
if ((pp->sloppyclockflag & CLK_FLAG1) == 0) {
refclock_report(peer, CEVNT_BADTIME);
pp->leap = LEAP_NOTINSYNC;
refclock_receive(peer);
#if 0
- msyslog(LOG_ERR, " D:%x D:%d D:%d",sync,pp->minute,pp->second);
+ msyslog(LOG_ERR, " D:%x D:%d D:%d",synch,pp->minute,pp->second);
#endif
record_clock_stats(&peer->srcadr, pp->a_lastcode);