summaryrefslogtreecommitdiff
path: root/driver_oncore.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-30 23:11:40 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-30 23:11:40 -0400
commit7094b0fbbbf49a2339108edd7dc0af52841834e7 (patch)
tree3c19d75601139b43e34fd7e9febead8557610908 /driver_oncore.c
parent56e9094724cd76cba6a2036a399667bbddb7f109 (diff)
downloadgpsd-7094b0fbbbf49a2339108edd7dc0af52841834e7.tar.gz
Revert "Separate ntpd support from chrony support, step 1."
We'll have to sneak up on this change more slowly.
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 0179b53f..0152933a 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 TIMESERVICE_ENABLE
-static double oncore_time_offset(struct gps_device_t *session UNUSED)
+#ifdef NTPSHM_ENABLE
+static double oncore_ntp_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_time_offset(struct gps_device_t *session UNUSED)
*/
return 0.175;
}
-#endif /* TIMESERVICE_ENABLE */
+#endif /* NTPSHM_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 TIMESERVICE_ENABLE
- .time_offset = oncore_time_offset, /* NTP offset array */
-#endif /* TIMESERVICE_ENABLE */
+#ifdef NTPSHM_ENABLE
+ .ntp_offset = oncore_ntp_offset, /* NTP offset array */
+#endif /* NTPSHM_ENABLE */
};
/* *INDENT-ON* */
#endif /* defined(ONCORE_ENABLE) && defined(BINARY_ENABLE) */