diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-10 09:05:32 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-10 09:05:32 +0000 |
commit | b85ca4e26b61471cd17e9468efbb49c56b77fdb9 (patch) | |
tree | 51fe0e01ae5665a98f4b28fda241ee244ca80e8e /libgps.c | |
parent | dad8b2b68113840c826e43e3857c487498271c85 (diff) | |
download | gpsd-b85ca4e26b61471cd17e9468efbb49c56b77fdb9.tar.gz |
Son of the Splint Cleanup.
Major change in this set is enforcong consistency about the data type
of serial parity information.
Diffstat (limited to 'libgps.c')
-rw-r--r-- | libgps.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -134,7 +134,7 @@ int gps_unpack(char *buf, struct gps_data_t *gpsdata) if (sp[2] == '?') { gpsdata->dev.baudrate = gpsdata->dev.stopbits = 0; } else - (void)sscanf(sp, "B=%d %*d %*s %d", + (void)sscanf(sp, "B=%u %*d %*s %u", &gpsdata->dev.baudrate, &gpsdata->dev.stopbits); break; case 'C': @@ -374,7 +374,8 @@ int gps_unpack(char *buf, struct gps_data_t *gpsdata) gpsdata->set |= TIME_SET; } for (j = 0; j < gpsdata->satellites; j++) { - PRN[j]=elevation[j]=azimuth[j]=ss[j]=used[j]=0; + PRN[j]=elevation[j]=azimuth[j]=used[j]=0; + ss[j]=0.0; } for (j = 0, gpsdata->satellites_used = 0; j < gpsdata->satellites; j++) { if ((sp != NULL) && ((sp = strchr(sp, ':')) != NULL)) { |