diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-01-28 14:52:44 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-01-28 14:52:44 -0500 |
commit | 409c46c0f0f2b79326c257bdb311b96773c8689e (patch) | |
tree | 6006734ffe15637c3d214932477713d1fbdcc002 /timebase.c | |
parent | c6996f51cb30e2199a92a8a86c815d7335748511 (diff) | |
download | gpsd-409c46c0f0f2b79326c257bdb311b96773c8689e.tar.gz |
splint cleanup.
Diffstat (limited to 'timebase.c')
-rw-r--r-- | timebase.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |