diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-01-21 12:56:08 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-21 12:56:08 -0500 |
commit | a61e28529df634963c0967e59aae673f8fc7741e (patch) | |
tree | 2c8e5c9ed1ff63870f8a94bd33ecd08a9825caa7 /driver_navcom.c | |
parent | f351f5981604338db80e2b2864b7dcb818e7fc61 (diff) | |
download | gpsd-a61e28529df634963c0967e59aae673f8fc7741e.tar.gz |
Easy splint cleanups. All regression tests pass.
Diffstat (limited to 'driver_navcom.c')
-rw-r--r-- | driver_navcom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/driver_navcom.c b/driver_navcom.c index 3e08af3d..55f0a323 100644 --- a/driver_navcom.c +++ b/driver_navcom.c @@ -789,9 +789,9 @@ static gps_mask_t handle_0x86(struct gps_device_t *session) * says should be. So I check for the fact that if all three * values below are zero, one is not interested in this satellite */ if (!(ele == 0 && azm == 0 && dgps_age == 0)) { - session->gpsdata.skyview[i].PRN = (int)prn; - session->gpsdata.skyview[i].elevation = (int)ele; - session->gpsdata.skyview[i].azimuth = (int)azm; + session->gpsdata.skyview[i].PRN = (short)prn; + session->gpsdata.skyview[i].elevation = (short)ele; + session->gpsdata.skyview[i].azimuth = (short)azm; /*@ ignore @*//* splint is confused */ s = session->gpsdata.skyview[i++].ss = (p2_snr ? p2_snr : ca_snr) / 4.0; /*@ end @*/ @@ -799,7 +799,7 @@ static gps_mask_t handle_0x86(struct gps_device_t *session) if (stat == 0xff) nsu++; } - session->gpsdata.satellites_used = nsu; + session->gpsdata.satellites_used = (int)nsu; gpsd_report(&session->context->errout, LOG_DATA, "Navcom: prn = %3u, ele = %02u, azm = %03u, snr = %d (%s), " "dgps age = %.1fs, log ch = %d, hw ch = 0x%02x\n", |