summaryrefslogtreecommitdiff
path: root/timebase.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-28 14:52:44 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-28 14:52:44 -0500
commit409c46c0f0f2b79326c257bdb311b96773c8689e (patch)
tree6006734ffe15637c3d214932477713d1fbdcc002 /timebase.c
parentc6996f51cb30e2199a92a8a86c815d7335748511 (diff)
downloadgpsd-409c46c0f0f2b79326c257bdb311b96773c8689e.tar.gz
splint cleanup.
Diffstat (limited to 'timebase.c')
-rw-r--r--timebase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/timebase.c b/timebase.c
index 1e7e10c9..f3d3c181 100644
--- a/timebase.c
+++ b/timebase.c
@@ -101,7 +101,7 @@ void gpsd_time_init(struct gps_context_t *context, time_t starttime)
context->century = CENTURY_BASE;
context->start_time = starttime;
- context->rollovers = ((context->start_time - GPS_EPOCH) / GPS_ROLLOVER);
+ context->rollovers = (int)((context->start_time-GPS_EPOCH) / GPS_ROLLOVER);
if (context->start_time < GPS_EPOCH)
gpsd_report(LOG_ERROR, "system time looks bogus, dates may not be reliable.\n");