diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-28 18:53:11 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-28 18:53:11 -0400 |
commit | c651976d406e14ee43b48357c86b7b78d6e94821 (patch) | |
tree | 308816b29c9992ff89938013a6226bf9deb49c4f /driver_tsip.c | |
parent | 2807b4d18ae2a229c45e54f8423015c1ef8c371d (diff) | |
download | gpsd-c651976d406e14ee43b48357c86b7b78d6e94821.tar.gz |
Scan-build and splint cleanup. All regression tests pass.
Diffstat (limited to 'driver_tsip.c')
-rw-r--r-- | driver_tsip.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/driver_tsip.c b/driver_tsip.c index 02d27e0c..7a4ff62d 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -287,7 +287,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) session->newdata.latitude = getbef(buf, 0) * RAD_2_DEG; session->newdata.longitude = getbef(buf, 4) * RAD_2_DEG; session->newdata.altitude = getbef(buf, 8); - f1 = getbef(buf, 12); /* clock bias */ + //f1 = getbef(buf, 12); clock bias */ f2 = getbef(buf, 16); /* time-of-fix */ if ((session->context->valid & GPS_TIME_VALID)!=0) { session->newdata.time = @@ -507,6 +507,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) break; case 0x6e: /* Synchronized Measurements */ break; +#ifdef __UNUSED__ case 0x6f: /* Synchronized Measurements Report */ /*@ +charint @*/ if (len < 20 || getub(buf, 0) != 1 || getub(buf, 1) != 2) @@ -515,6 +516,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) s1 = getbes16(buf, 2); /* number of bytes */ u1 = getub(buf, 20); /* number of SVs */ break; +#endif /* __UNUSED__ */ case 0x70: /* Filter Report */ break; case 0x7a: /* NMEA settings */ @@ -771,7 +773,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) session->newdata.latitude = getbed(buf, 36) * RAD_2_DEG; session->newdata.longitude = getbed(buf, 44) * RAD_2_DEG; session->newdata.altitude = getbed(buf, 52); - f1 = getbef(buf, 16); /* clock bias */ + //f1 = getbef(buf, 16); clock bias */ u1 = getub(buf, 12); /* GPS Decoding Status */ u2 = getub(buf, 1); /* Receiver Mode */ |