summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-11 14:41:31 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-11 14:42:02 -0400
commit2a62d13b260430097cb4adab0f64901cfb2b13dc (patch)
tree4b07bb3f7c877f6e1b1d11500ba017c9551bb6f1 /driver_ubx.c
parente5fe5a561e6257a2d1f16a4e9247b20e2c214cd5 (diff)
downloadgpsd-2a62d13b260430097cb4adab0f64901cfb2b13dc.tar.gz
Still working on pacifying Coverity. All regression tests pass.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 40721c7c..5e417461 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -515,7 +515,8 @@ bool ubx_write(struct gps_device_t * session,
unsigned char *msg, size_t data_len)
{
unsigned char CK_A, CK_B;
- ssize_t i, count;
+ ssize_t count;
+ size_t i;
bool ok;
/*@ -type @*/
@@ -550,9 +551,8 @@ bool ubx_write(struct gps_device_t * session,
/*@ +type @*/
- /* coverity[pwprintf_arg_mismatch] */
gpsd_report(LOG_IO,
- "=> GPS: UBX class: %02x, id: %02x, len: %d, crc: %02x%02x\n",
+ "=> GPS: UBX class: %02x, id: %02x, len: %zd, crc: %02x%02x\n",
msg_class, msg_id, data_len,
CK_A, CK_B);
count = gpsd_write(session, session->msgbuf, session->msgbuflen);