diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-04-20 13:36:14 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-04-20 13:36:14 -0400 |
commit | b7db5552281151cc623f5e03f3c4f3687025ec38 (patch) | |
tree | 461979495e2a3eb536ddf0c12a7b84ec96ce1bf2 /driver_sirf.c | |
parent | d3551eec32b6a4858d00582f61b00803ef340b00 (diff) | |
download | gpsd-b7db5552281151cc623f5e03f3c4f3687025ec38.tar.gz |
Splint and cppcheck cleanup. All regression tests pass.
Diffstat (limited to 'driver_sirf.c')
-rw-r--r-- | driver_sirf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/driver_sirf.c b/driver_sirf.c index 2d2d676a..5338aea8 100644 --- a/driver_sirf.c +++ b/driver_sirf.c @@ -447,7 +447,7 @@ static gps_mask_t sirf_msg_navdata(struct gps_device_t *session, words[i] = (unsigned int)getbeul(buf, 4 * i + 3); } - gpsd_interpret_subframe_raw(session, words); + (void)gpsd_interpret_subframe_raw(session, words); #ifdef ALLOW_RECONFIGURE if (session->gpsdata.dev.baudrate < 38400) { @@ -470,8 +470,8 @@ static gps_mask_t sirf_msg_svinfo(struct gps_device_t *session, return 0; gpsd_zero_satellites(&session->gpsdata); - session->context->gps_week = getbesw(buf, 1); - session->context->gps_tow = getbeul(buf, 3) * 1e-2; + session->context->gps_week = (unsigned short)getbesw(buf, 1); + session->context->gps_tow = (double)getbeul(buf, 3) * 1e-2; /*@ ignore @*//*@ splint is confused @ */ session->gpsdata.skyview_time = @@ -613,8 +613,8 @@ static gps_mask_t sirf_msg_navsol(struct gps_device_t *session, navtype, session->gpsdata.status, session->newdata.mode); /* byte 20 is HDOP, see below */ /* byte 21 is "mode 2", not clear how to interpret that */ - session->context->gps_week = getbesw(buf, 22); - session->context->gps_tow = getbeul(buf, 24) * 1e-2; + session->context->gps_week = (unsigned short)getbesw(buf, 22); + session->context->gps_tow = (double)getbeul(buf, 24) * 1e-2; /*@ ignore @*//*@ splint is confused @ */ session->newdata.time = gpstime_to_unix(session->context->gps_week, session->context->gps_tow) - |