summaryrefslogtreecommitdiff
path: root/monitor_ubx.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2010-04-18 19:50:17 -0700
committerGary E. Miller <gem@rellim.com>2010-04-18 19:50:17 -0700
commitdf655a372c2f0997ac868a7b818ba438d17810ea (patch)
tree6aef9fe6358319d8fa677b04f5f3fe775c33f33a /monitor_ubx.c
parent262282ffbbfa1756de4fc7f2c6856a4663c907a1 (diff)
downloadgpsd-df655a372c2f0997ac868a7b818ba438d17810ea.tar.gz
Smoke out more private copies of gps_week and move into session->context.
Prepare to do the same for Time of Week (tow).
Diffstat (limited to 'monitor_ubx.c')
-rw-r--r--monitor_ubx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c
index 1d461228..0689127e 100644
--- a/monitor_ubx.c
+++ b/monitor_ubx.c
@@ -141,7 +141,7 @@ static void display_nav_sol(unsigned char *buf, size_t data_len)
if ((flags & (UBX_SOL_VALID_WEEK | UBX_SOL_VALID_TIME)) != 0) {
tow = (unsigned int)getleul(buf, 0);
gw = (unsigned short)getlesw(buf, 8);
- t = gpstime_to_unix((int)gw, tow / 1000.0);
+ t = gpstime_to_unix(gw, tow / 1000.0);
tt = (time_t) trunc(t);
}