summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-04-20 13:15:43 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-04-20 13:15:43 -0400
commit464b4d3e4a4ec77cecf0e6f8fa818b76fb949146 (patch)
treec7c630cfddeee42aea4006543ab1f58484130463 /gpsd.c
parent156c9fb299e44c691e0bc972408a59b813b63bd9 (diff)
downloadgpsd-464b4d3e4a4ec77cecf0e6f8fa818b76fb949146.tar.gz
Suppress compiler warnings and do splint cleanup. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsd.c b/gpsd.c
index 93264f0b..7f977dde 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1339,15 +1339,15 @@ static void raw_report(struct subscriber_t *sub, struct gps_device_t *device)
* Maybe the user wants a binary packet hexdumped.
*/
if (sub->policy.raw == 1) {
- char *hd =
+ const char *hd =
gpsd_hexdump((char *)device->packet.outbuffer,
device->packet.outbuflen);
/*
* Ugh...depends on knowing the length of gpsd_hexdump's
* buffer.
*/
- (void)strlcat(hd, "\r\n", MAX_PACKET_LENGTH * 2 + 1);
- (void)throttled_write(sub, hd, strlen(hd));
+ (void)strlcat((char *)hd, "\r\n", MAX_PACKET_LENGTH * 2 + 1);
+ (void)throttled_write(sub, (char *)hd, strlen(hd));
}
#endif /* BINARY_ENABLE */
}