summaryrefslogtreecommitdiff
path: root/libgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-10 00:27:33 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-10 00:27:33 +0000
commitfe1d49417023d154942cae0556ca0f44204eb6fc (patch)
tree1c5677729e1de7fef28d739ddc8cb33eda4012a2 /libgps.c
parent14eacef3d14b6fbdb0b74bf82393ce98d327a171 (diff)
downloadgpsd-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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libgps.c b/libgps.c
index 7a12aedf..a37a57fc 100644
--- a/libgps.c
+++ b/libgps.c
@@ -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;
}
}