diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-30 12:32:12 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-30 12:39:26 -0400 |
commit | d9b8758935f902fb0ea77fee09e9627e09462a11 (patch) | |
tree | d6dbb060ce2162abe50b6dcada9b23c0a80ad63d /driver_zodiac.c | |
parent | 7a5a25946be3db4bd8c08d1a5b126f43131144eb (diff) | |
download | gpsd-d9b8758935f902fb0ea77fee09e9627e09462a11.tar.gz |
Separate ntpd support from chrony support, step 1.
ntp_offset becomes time_offset. There is a new config symbol CHRONY_ENABLE;
most time service code is npw controlled by TIMESERVICE_ENABLE. The
file ntpshm.c becomes timeexport.c
This change is not complete. More disentanglement has to be done inside
timeexport.c itself; at the moment enabling one but not both of
ntpshm or chrony will probably break its compile. The point of getting
this commit out is so Gary will see the new baseline code ASAP.
All regression tests pass.
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..5ab969a1 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 TIMESERVICE_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 /* TIMESERVICE_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 TIMESERVICE_ENABLE + .time_offset = zodiac_time_offset, /* compute NTO fudge factor */ +#endif /* TIMESERVICE_ENABLE */ }; /* *INDENT-ON* */ |