diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-09-29 15:39:19 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-09-29 15:39:19 -0400 |
commit | 76118dd9a35eb1516aee287d3aaa8f3824a712fb (patch) | |
tree | 65403bab9b535e2922342e527d732cb9fd8ff032 /driver_zodiac.c | |
parent | 0a36cb1944a53cb206161997da44486d7c95e712 (diff) | |
download | gpsd-76118dd9a35eb1516aee287d3aaa8f3824a712fb.tar.gz |
Better way to avoid glibc dependency.
Returns us to something amost identical to the original code.
Sigh. Timezones are a swamp.
All regression tests pass.
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r-- | driver_zodiac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c index c961a963..6ff24efe 100644 --- a/driver_zodiac.c +++ b/driver_zodiac.c @@ -167,7 +167,7 @@ static gps_mask_t handle1000(struct gps_device_t *session) unpacked_date.tm_sec = (int)getzword(24); subseconds = (int)getzlong(25) / 1e9; /*@ -compdef */ - session->newdata.time = (timestamp_t)timegm(&unpacked_date) + subseconds; + session->newdata.time = (timestamp_t)mkgmtime(&unpacked_date) + subseconds; /*@ +compdef */ /*@ -type @*/ session->newdata.latitude = ((long)getzlong(27)) * RAD_2_DEG * 1e-8; |