summaryrefslogtreecommitdiff
path: root/driver_proto.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_proto.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_proto.c')
-rw-r--r--driver_proto.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/driver_proto.c b/driver_proto.c
index f9f7f060..17413e80 100644
--- a/driver_proto.c
+++ b/driver_proto.c
@@ -453,8 +453,8 @@ static void _proto__set_mode(struct gps_device_t *session, int mode)
}
#endif /* RECONFIGURE_ENABLE */
-#ifdef NTPSHM_ENABLE
-static double _proto_ntp_offset(struct gps_device_t *session)
+#ifdef TIMEHINT_ENABLE
+static double _proto_time_offset(struct gps_device_t *session)
{
/*
* If NTP notification is enabled, the GPS will occasionally NTP
@@ -468,7 +468,7 @@ static double _proto_ntp_offset(struct gps_device_t *session)
*/
return MAGIC_CONSTANT;
}
-#endif /* NTPSHM_ENABLE */
+#endif /* TIMEHINT_ENABLE */
static void _proto__wrapup(struct gps_device_t *session)
{
@@ -525,9 +525,9 @@ const struct gps_type_t _proto__binary = {
/* Control string sender - should provide checksum and headers/trailer */
.control_send = _proto__control_send,
#endif /* CONTROLSEND_ENABLE */
-#ifdef NTPSHM_ENABLE
- .ntp_offset = _proto_ntp_offset,
-#endif /* NTPSHM_ENABLE */
+#ifdef TIMEHINT_ENABLE
+ .time_offset = _proto_time_offset,
+#endif /* TIMEHINT_ENABLE */
/* *INDENT-ON* */
};
#endif /* defined(_PROTO__ENABLE) && defined(BINARY_ENABLE) */