diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-01-21 09:57:59 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-01-21 09:57:59 +0000 |
commit | 7925f0d0fcb3c98dc254ba1d18aef0c89c86b8c6 (patch) | |
tree | e3aefcf4260a9c8d3949e0a2b16941ceb7ff83de /gpsd.c | |
parent | 9bafada0e09f12e2ad26b3452b2e6903ba11d3f5 (diff) | |
download | gpsd-7925f0d0fcb3c98dc254ba1d18aef0c89c86b8c6.tar.gz |
Splint cleanup.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -450,7 +450,7 @@ static ssize_t throttled_write(struct subscriber_t *sub, char *buf, ssize_t len) chunklen = strlen(chunk); chunkend = chunk + chunklen; } else - chunklen = chunkend - chunk + 1; + chunklen = (size_t)(chunkend - chunk + 1); if (debuglevel >= 3) { char *cp, chunk2[MAX_PACKET_LENGTH*3]; @@ -1297,7 +1297,7 @@ static void handle_control(int sfd, char *buf) if ((chp = find_device(stash)) != NULL) { gpsd_report(LOG_INF,"<= control(%d): writing fromhex(%s) to %s\n", sfd, eq, stash); /* NOTE: this destroys the original buffer contents */ - len = gpsd_hexpack(eq, eq, len); + len = (size_t)gpsd_hexpack(eq, eq, len); ignore_return(write(chp->gpsdata.gps_fd, eq, len)); ignore_return(write(sfd, "OK\n", 3)); } else { |