diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-04-20 13:15:43 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-04-20 13:15:43 -0400 |
commit | 464b4d3e4a4ec77cecf0e6f8fa818b76fb949146 (patch) | |
tree | c7c630cfddeee42aea4006543ab1f58484130463 /gpsd.c | |
parent | 156c9fb299e44c691e0bc972408a59b813b63bd9 (diff) | |
download | gpsd-464b4d3e4a4ec77cecf0e6f8fa818b76fb949146.tar.gz |
Suppress compiler warnings and do splint cleanup. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ } |