diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-02-27 17:51:18 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-02-27 17:51:18 -0500 |
commit | f81025baff15b61444511b2d352dc24fe95f6846 (patch) | |
tree | 0c34f7f094f972545782c73d3d3ceb4c9cd74916 /drivers.c | |
parent | b897a53f23479a03aa63d5e2712695278bfe71ab (diff) | |
download | gpsd-f81025baff15b61444511b2d352dc24fe95f6846.tar.gz |
splint cleanup, includubng an error in the last commit caught by it.
Diffstat (limited to 'drivers.c')
-rw-r--r-- | drivers.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -850,7 +850,7 @@ static const struct gps_type_t oceanServer = { static gps_mask_t rtcm104v2_analyze(struct gps_device_t *session) { rtcm2_unpack(&session->gpsdata.rtcm2, (char *)session->packet.isgps.buf); - gpsd_report(LOG_RAW, "RTCM 2.x packet type 0x%02x length %d words from %d bytes: %s\n", + gpsd_report(LOG_RAW, "RTCM 2.x packet type 0x%02x length %d words from %zd bytes: %s\n", session->gpsdata.rtcm2.type, session->gpsdata.rtcm2.length + 2, session->packet.isgps.buflen, @@ -991,7 +991,7 @@ static gps_mask_t processMTK3301(struct gps_device_t *session) gps_mask_t mask; /* try a straight NMEA parse, this will set up fields */ - mask = generic_get(session); + mask = generic_parse_input(session); if (session->packet.type == NMEA_PACKET && strncmp(session->driver.nmea.field[0], "$PMTK", 5) == 0) |