summaryrefslogtreecommitdiff
path: root/subframe.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-31 23:49:55 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-31 23:49:55 -0400
commit2ae441d42411d416e9e3f39c60f6c14d23708f74 (patch)
tree37b14bf6edc83e62ab1d14d64040161d91f75220 /subframe.c
parent5af8826c921dfe73e04a24e1e092a04c97f577a2 (diff)
downloadgpsd-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 'subframe.c')
-rw-r--r--subframe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/subframe.c b/subframe.c
index 25097428..eaf34779 100644
--- a/subframe.c
+++ b/subframe.c
@@ -728,7 +728,7 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session,
subp->sub4_18.leap, subp->sub4_18.WNlsf,
subp->sub4_18.DN, subp->sub4_18.lsf);
-#ifdef NTPSHM_ENABLE
+#ifdef TIMEHINT_ENABLE
/* IS-GPS-200 Revision E, paragraph 20.3.3.5.2.4 */
if (((session->context->gps_week % 256) == (unsigned short)subp->sub4_18.WNlsf) &&
/* notify the leap seconds correction in the end of current day */
@@ -742,7 +742,7 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session,
session->context->leap_notify = LEAP_NOWARNING;
} else
session->context->leap_notify = LEAP_NOWARNING;
-#endif /* NTPSHM_ENABLE */
+#endif /* TIMEHINT_ENABLE */
session->context->leap_seconds = (int)subp->sub4_18.leap;
session->context->valid |= LEAP_SECOND_VALID;