diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-10 05:26:00 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-10 05:26:00 -0500 |
commit | 736379fc0411971e4f2aa3e8d048ab1205dbcc76 (patch) | |
tree | 828aa83305b34f5804d75d65ed8a35cbad930a30 /driver_superstar2.c | |
parent | c56017271ca1d53b5f45e5dcff551fed8e3e29be (diff) | |
download | gpsd-736379fc0411971e4f2aa3e8d048ab1205dbcc76.tar.gz |
And still more double -> timestamp_t moves.
All regression tests pass, splint passes.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r-- | driver_superstar2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c index ad58a56a..0418e4e3 100644 --- a/driver_superstar2.c +++ b/driver_superstar2.c @@ -98,7 +98,7 @@ superstar2_msg_navsol_lla(struct gps_device_t *session, tm.tm_mday = (int)getub(buf, 14); tm.tm_mon = (int)getub(buf, 15) - 1; tm.tm_year = (int)getleu16(buf, 16) - 1900; - session->newdata.time = timegm(&tm) + (d - tm.tm_sec); + session->newdata.time = (timestamp_t)timegm(&tm) + (d - tm.tm_sec); mask |= TIME_IS; /* extract the local tangential plane (ENU) solution */ @@ -265,7 +265,7 @@ superstar2_msg_timing(struct gps_device_t *session, unsigned char *buf, tm.tm_min = (int)getsb(buf, 42); d = getled(buf, 43); tm.tm_sec = (int)d; - session->newdata.time = timegm(&tm); + session->newdata.time = (timestamp_t)timegm(&tm); session->context->leap_seconds = (int)getsb(buf, 20); mask = TIME_IS; } |