diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-01-05 21:47:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-01-05 21:47:53 +0000 |
commit | b733f7ba16cc88b9dca875998c57bbb09b113b22 (patch) | |
tree | 6ddae3b1683a3f4459f0d17ad702aea5a7ab96a7 /sirf.c | |
parent | ce47fae04c9742560ae5dedb92c485263dcb89f9 (diff) | |
download | gpsd-b733f7ba16cc88b9dca875998c57bbb09b113b22.tar.gz |
This diff goes most of the way to getting us splint-clean again.
Diffstat (limited to 'sirf.c')
-rw-r--r-- | sirf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -440,7 +440,7 @@ static gps_mask_t sirf_msg_geodetic(struct gps_device_t *session, unsigned char session->gpsdata.fix.latitude = getbesl(buf, 23)*1e-7; session->gpsdata.fix.longitude = getbesl(buf, 27)*1e-7; - if (session->gpsdata.fix.latitude && session->gpsdata.fix.latitude) + if (session->gpsdata.fix.latitude!=0 && session->gpsdata.fix.latitude!=0) mask |= LATLON_SET; if ((session->gpsdata.fix.eph = getbesl(buf, 50)*1e-2) > 0) @@ -451,7 +451,7 @@ static gps_mask_t sirf_msg_geodetic(struct gps_device_t *session, unsigned char mask |= SPEEDERR_SET; /* HDOP should be available at byte 89, but in 231 it's zero. */ - if ((session->gpsdata.hdop = getub(buf, 89) * 0.2) > 0) + if ((session->gpsdata.hdop = (unsigned int)getub(buf, 89) * 0.2) > 0) mask |= HDOP_SET; if (session->driver.sirf.driverstate & SIRF_GE_232) { |