diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-10 00:27:33 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-10 00:27:33 +0000 |
commit | fe1d49417023d154942cae0556ca0f44204eb6fc (patch) | |
tree | 1c5677729e1de7fef28d739ddc8cb33eda4012a2 /libgps.c | |
parent | 14eacef3d14b6fbdb0b74bf82393ce98d327a171 (diff) | |
download | gpsd-fe1d49417023d154942cae0556ca0f44204eb6fc.tar.gz |
Type cleanup.
Mainly introducing size_t, speed_t, and bool to replace plain integral
types. Passes all regression tests.
Diffstat (limited to 'libgps.c')
-rw-r--r-- | libgps.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -413,10 +413,11 @@ static void gps_unpack(char *buf, struct gps_data_t *gpsdata) gpsdata->set |= SATELLITE_SET; break; case 'Z': - (void)sscanf(sp, "Z=%d", &gpsdata->profiling); + gpsdata->profiling = (sp[2] == '1'); break; case '$': - (void)sscanf(sp, "$=%s %d %lf %lf %lf %lf %lf %lf", + /*@ +matchanyintegral @*/ + (void)sscanf(sp, "$=%s %u %lf %lf %lf %lf %lf %lf", gpsdata->tag, &gpsdata->sentence_length, &gpsdata->fix.time, @@ -425,6 +426,7 @@ static void gps_unpack(char *buf, struct gps_data_t *gpsdata) &gpsdata->d_decode_time, &gpsdata->poll_time, &gpsdata->emit_time); + /*@ -matchanyintegral @*/ break; } } |