diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-06-17 11:37:39 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-06-17 11:37:39 -0400 |
commit | 0e0f7f0b7c6c658259f09152ff8326f05b81b271 (patch) | |
tree | b2587f05a9a1ab49eb9a6a299e8844dc741e32df /drivers.c | |
parent | 607cdcca3ec69f74245b06cbb147e2435360d190 (diff) | |
download | gpsd-0e0f7f0b7c6c658259f09152ff8326f05b81b271.tar.gz |
Improve the code for making sensor data and command strings visible...
...and remove some const declarations that could have spelled trouble
in the future.
Diffstat (limited to 'drivers.c')
-rw-r--r-- | drivers.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -894,13 +894,13 @@ static const struct gps_type_t oceanServer = { static gps_mask_t rtcm104v2_analyze(struct gps_device_t *session) { rtcm2_unpack(&session->gpsdata.rtcm2, (char *)session->packet.isgps.buf); - /* extra guard prevents expensive gpsd_hexdump() calls */ + /* extra guard prevents expensive hexdump calls */ if (session->context->debug >= LOG_RAW) gpsd_report(LOG_RAW, "RTCM 2.x packet type 0x%02x length %d words from %zd bytes: %s\n", session->gpsdata.rtcm2.type, session->gpsdata.rtcm2.length + 2, session->packet.isgps.buflen, - gpsd_hexdump(session->packet.isgps.buf, + gpsd_hexdump((char *)session->packet.isgps.buf, (session->gpsdata.rtcm2.length + 2) * sizeof(isgps30bits_t))); session->cycle_end_reliable = true; |