summaryrefslogtreecommitdiff
path: root/libgps_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-10 03:52:15 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-03-10 03:52:15 -0500
commitbaf9bb1ab92936f040153d5a47ac32bdae2442b7 (patch)
treef0e1df9cac2c20023931dc96a2bd844f973ca4f0 /libgps_core.c
parentfd31d7e5104e5be77c1ebbb62eecb163c55efdf9 (diff)
downloadgpsd-baf9bb1ab92936f040153d5a47ac32bdae2442b7.tar.gz
Give timestamps their own typedef. No logic changes.
All regression tests pass, splint and cppcheck pass.
Diffstat (limited to 'libgps_core.c')
-rw-r--r--libgps_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_core.c b/libgps_core.c
index 0cc35782..32f1ede7 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -412,7 +412,7 @@ int gps_unpack(char *buf, struct gps_data_t *gpsdata)
break;
case 'X':
if (sp[2] == '?')
- gpsdata->online = -1;
+ gpsdata->online = (timestamp_t)-1;
else {
(void)sscanf(sp, "X=%lf", &gpsdata->online);
gpsdata->set |= ONLINE_SET;