diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-10 04:51:49 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-10 04:51:49 -0500 |
commit | c56017271ca1d53b5f45e5dcff551fed8e3e29be (patch) | |
tree | e1f11e710c1825460363d26dacd2ed4f5cca22d1 /driver_oncore.c | |
parent | 6a89bcea2a29d70d864de82879d4df8e10fce61e (diff) | |
download | gpsd-c56017271ca1d53b5f45e5dcff551fed8e3e29be.tar.gz |
Yet more double->timestamp_t moves.
All tests pass. These are didfficult to spot because the compiler actually
doesn't care about the distinction btween the source and result type of
a typedef.
Diffstat (limited to 'driver_oncore.c')
-rw-r--r-- | driver_oncore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_oncore.c b/driver_oncore.c index 8cd19a59..aa148beb 100644 --- a/driver_oncore.c +++ b/driver_oncore.c @@ -110,7 +110,7 @@ oncore_msg_navsol(struct gps_device_t *session, unsigned char *buf, nsec = (uint) getbeu32(buf, 11); /*@ -unrecog */ - session->newdata.time = (double)timegm(&unpacked_date) + nsec * 1e-9; + session->newdata.time = (timestamp_t)timegm(&unpacked_date) + nsec * 1e-9; /*@ +unrecog */ mask |= TIME_IS; gpsd_report(LOG_IO, |