From: Matthias Andree Date: Sat, 11 Jan 2003 00:42:41 +0000 (+0100) Subject: Fix compiler warnings about sync(2) getting shadowed. X-Git-Tag: NTP_4_1_73~3^2^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=907f4e83d96ec35f95a37973ef133e8511e10a6b;p=thirdparty%2Fntp.git Fix compiler warnings about sync(2) getting shadowed. bk: 3e1f6881UfHMJS7Ay9aggT92x0IBZg --- diff --git a/ntpd/refclock_hopfser.c b/ntpd/refclock_hopfser.c index a9d74dda1d..36ce26b648 100644 --- a/ntpd/refclock_hopfser.c +++ b/ntpd/refclock_hopfser.c @@ -216,7 +216,7 @@ hopfserial_receive ( struct refclockproc *pp; struct peer *peer; - int sync; /* synchronization indicator */ + int synch; /* synchhronization indicator */ int DoW; /* Dow */ int day, month; /* ddd conversion */ @@ -245,7 +245,7 @@ hopfserial_receive ( #else "%*c%1x%1x%2d%2d%2d%2d%2d%2d", /* stx...cr,lf,etx */ #endif - &sync, + &synch, &DoW, &pp->hour, &pp->minute, @@ -286,7 +286,7 @@ hopfserial_receive ( #if 0 wsprintf(pp->a_lastcode, "STATUS: %1X%1X, DATE: %02d.%02d.%04d TIME: %02d:%02d:%02d", - sync, + synch, DoW, day, month, @@ -296,7 +296,7 @@ hopfserial_receive ( 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; @@ -305,7 +305,7 @@ hopfserial_receive ( /* * 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; @@ -316,7 +316,7 @@ hopfserial_receive ( * 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; @@ -332,7 +332,7 @@ hopfserial_receive ( 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);