summaryrefslogtreecommitdiff
path: root/driver_oncore.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 /driver_oncore.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 'driver_oncore.c')
-rw-r--r--driver_oncore.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/driver_oncore.c b/driver_oncore.c
index 0152933a..45929451 100644
--- a/driver_oncore.c
+++ b/driver_oncore.c
@@ -454,8 +454,8 @@ static void oncore_event_hook(struct gps_device_t *session, event_t event)
}
}
-#ifdef NTPSHM_ENABLE
-static double oncore_ntp_offset(struct gps_device_t *session UNUSED)
+#ifdef TIMEHINT_ENABLE
+static double oncore_time_offset(struct gps_device_t *session UNUSED)
{
/*
* Only one sentence (NAVSOL) ships time. 0.175 seems best at
@@ -464,7 +464,7 @@ static double oncore_ntp_offset(struct gps_device_t *session UNUSED)
*/
return 0.175;
}
-#endif /* NTPSHM_ENABLE */
+#endif /* TIMEHINT_ENABLE */
static gps_mask_t oncore_parse_input(struct gps_device_t *session)
{
@@ -503,9 +503,9 @@ const struct gps_type_t oncore_binary = {
/* Control string sender - should provide checksum and headers/trailer */
.control_send = oncore_control_send, /* to send control strings */
#endif /* CONTROLSEND_ENABLE */
-#ifdef NTPSHM_ENABLE
- .ntp_offset = oncore_ntp_offset, /* NTP offset array */
-#endif /* NTPSHM_ENABLE */
+#ifdef TIMEHINT_ENABLE
+ .time_offset = oncore_time_offset, /* NTP offset array */
+#endif /* TIMEHINT_ENABLE */
};
/* *INDENT-ON* */
#endif /* defined(ONCORE_ENABLE) && defined(BINARY_ENABLE) */