From 464b4d3e4a4ec77cecf0e6f8fa818b76fb949146 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 20 Apr 2012 13:15:43 -0400 Subject: Suppress compiler warnings and do splint cleanup. All regression tests pass. --- gpsd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gpsd.c') 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 */ } -- cgit v1.2.1