diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-31 23:49:55 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-31 23:49:55 -0400 |
commit | 2ae441d42411d416e9e3f39c60f6c14d23708f74 (patch) | |
tree | 37b14bf6edc83e62ab1d14d64040161d91f75220 /driver_zodiac.c | |
parent | 5af8826c921dfe73e04a24e1e092a04c97f577a2 (diff) | |
download | gpsd-2ae441d42411d416e9e3f39c60f6c14d23708f74.tar.gz |
Contain the assumption that time hinting is done to NTPD.
Because it might be going to chrony. Or something else.
No logic changes, just name changes and one new derived #define,
TIMEHINT_ENABLE.
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r-- | driver_zodiac.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c index 296dbece..14e15f28 100644 --- a/driver_zodiac.c +++ b/driver_zodiac.c @@ -445,8 +445,8 @@ static bool zodiac_speed_switch(struct gps_device_t *session, } #endif /* RECONFIGURE_ENABLE */ -#ifdef NTPSHM_ENABLE -static double zodiac_ntp_offset(struct gps_device_t *session UNUSED) +#ifdef TIMEHINT_ENABLE +static double zodiac_time_offset(struct gps_device_t *session UNUSED) { /* Removing/changing the magic number below is likely to disturb * the handling of the 1pps signal from the gps device. The regression @@ -454,7 +454,7 @@ static double zodiac_ntp_offset(struct gps_device_t *session UNUSED) * with the 1pps signal active is required. */ return 1.1; } -#endif /* NTPSHM_ENABLE */ +#endif /* TIMEHINT_ENABLE */ /* this is everything we export */ /* *INDENT-OFF* */ @@ -479,9 +479,9 @@ const struct gps_type_t zodiac_binary = #ifdef CONTROLSEND_ENABLE .control_send = zodiac_control_send, /* for gpsctl and friends */ #endif /* CONTROLSEND_ENABLE */ -#ifdef NTPSHM_ENABLE - .ntp_offset = zodiac_ntp_offset, /* compute NTO fudge factor */ -#endif /* NTPSHM_ENABLE */ +#ifdef TIMEHINT_ENABLE + .time_offset = zodiac_time_offset, /* compute NTO fudge factor */ +#endif /* TIMEHINT_ENABLE */ }; /* *INDENT-ON* */ |