diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-09-25 16:55:10 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-09-25 16:55:10 -0400 |
commit | c1ba7516b8dcb00c658d2630c2a8be9f4355e618 (patch) | |
tree | 0082f707196e289d337aa192d44e406262613be3 /driver_zodiac.c | |
parent | 282691da60ec526772f713a63fa0b8f43aea7acb (diff) | |
download | gpsd-c1ba7516b8dcb00c658d2630c2a8be9f4355e618.tar.gz |
Remove some custom code, at the cost of introducing a glibc depenency.
Dependency soon to be fixed. 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 6ff24efe..c961a963 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)mkgmtime(&unpacked_date) + subseconds; + session->newdata.time = (timestamp_t)timegm(&unpacked_date) + subseconds; /*@ +compdef */ /*@ -type @*/ session->newdata.latitude = ((long)getzlong(27)) * RAD_2_DEG * 1e-8; |