Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp/dist/ntpd avoid shadowing of recv.



details:   https://anonhg.NetBSD.org/src/rev/24339e68b4b2
branches:  trunk
changeset: 335028:24339e68b4b2
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 22 04:23:58 2014 +0000

description:
avoid shadowing of recv.

diffstat:

 external/bsd/ntp/dist/ntpd/refclock_nmea.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r b32c1f4605d2 -r 24339e68b4b2 external/bsd/ntp/dist/ntpd/refclock_nmea.c
--- a/external/bsd/ntp/dist/ntpd/refclock_nmea.c        Mon Dec 22 04:21:47 2014 +0000
+++ b/external/bsd/ntp/dist/ntpd/refclock_nmea.c        Mon Dec 22 04:23:58 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: refclock_nmea.c,v 1.6 2014/12/19 20:43:17 christos Exp $       */
+/*     $NetBSD: refclock_nmea.c,v 1.7 2014/12/22 04:23:58 christos Exp $       */
 
 /*
  * refclock_nmea.c - clock driver for an NMEA GPS CLOCK
@@ -314,7 +314,7 @@
 static int     gpsfix_century  (struct calendar * jd, const gps_weektm * wd,
                                 u_short * ccentury);
 static l_fp     eval_gps_time  (struct peer * peer, const struct calendar * gpst,
-                                const struct timespec * gpso, const l_fp * recv);
+                                const struct timespec * gpso, const l_fp * xrecv);
 
 static int     nmead_open      (const char * device);
 static void     save_ltc        (struct refclockproc * const, const char * const,
@@ -1782,7 +1782,7 @@
        struct peer           * peer, /* for logging etc */
        const struct calendar * gpst, /* GPS time stamp  */
        const struct timespec * tofs, /* GPS frac second & offset */
-       const l_fp            * recv  /* receive time stamp */
+       const l_fp            * xrecv /* receive time stamp */
        )
 {
        struct refclockproc * const pp = peer->procptr;
@@ -1838,7 +1838,7 @@
        }
 
        /* - get unfold base: day of full recv time - 512 weeks */
-       vi64 = ntpcal_ntp_to_ntp(recv->l_ui, NULL);
+       vi64 = ntpcal_ntp_to_ntp(xrecv->l_ui, NULL);
        rs64 = ntpcal_daysplit(&vi64);
        rcv_sec = rs64.lo;
        rcv_day = rs64.hi - 512 * 7;
@@ -1848,7 +1848,7 @@
         * fractional day of the receive time, we shift the base day for
         * the unfold by 1. */
        if (   gps_sec  < rcv_sec
-          || (gps_sec == rcv_sec && retv.l_uf < recv->l_uf))
+          || (gps_sec == rcv_sec && retv.l_uf < xrecv->l_uf))
                rcv_day += 1;
 
        /* - don't warp ahead of GPS invention! */



Home | Main Index | Thread Index | Old Index