summaryrefslogtreecommitdiff
path: root/sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-01-05 21:47:53 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-01-05 21:47:53 +0000
commitb733f7ba16cc88b9dca875998c57bbb09b113b22 (patch)
tree6ddae3b1683a3f4459f0d17ad702aea5a7ab96a7 /sirf.c
parentce47fae04c9742560ae5dedb92c485263dcb89f9 (diff)
downloadgpsd-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sirf.c b/sirf.c
index 4f4ed922..b0a617cc 100644
--- a/sirf.c
+++ b/sirf.c
@@ -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) {