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_sirf.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_sirf.c')
-rw-r--r-- | driver_sirf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_sirf.c b/driver_sirf.c index 684c306b..cd81b8a4 100644 --- a/driver_sirf.c +++ b/driver_sirf.c @@ -1016,7 +1016,7 @@ static gps_mask_t sirf_msg_ublox(struct gps_device_t *session, unpacked_date.tm_sec = 0; subseconds = ((unsigned short)getbeu16(buf, 32)) * 1e-3; /*@ -compdef */ - session->newdata.time = (timestamp_t)mkgmtime(&unpacked_date) + subseconds; + session->newdata.time = (timestamp_t)timegm(&unpacked_date) + subseconds; /*@ +compdef */ #ifdef TIMEHINT_ENABLE if (0 == (session->driver.sirf.time_seen & TIME_SEEN_UTC_2)) { @@ -1069,7 +1069,7 @@ static gps_mask_t sirf_msg_ppstime(struct gps_device_t *session, unpacked_date.tm_mon = (int)getub(buf, 5) - 1; unpacked_date.tm_year = (int)getbeu16(buf, 6) - 1900; /*@ -compdef */ - session->newdata.time = (timestamp_t)mkgmtime(&unpacked_date); + session->newdata.time = (timestamp_t)timegm(&unpacked_date); /*@ +compdef */ session->context->leap_seconds = (int)getbeu16(buf, 8); session->context->valid |= LEAP_SECOND_VALID; |