summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gpsd_json.c b/gpsd_json.c
index 302d768f..e11fbc52 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -2010,7 +2010,7 @@ void json_aivdm_dump(const struct ais_t *ais,
(void)snprintf(buf + strlen(buf), buflen - strlen(buf),
"\"data\":\"%zd:%s\"}\r\n",
ais->type6.bitcount,
- gpsd_hexdump(ais->type6.bitdata,
+ gpsd_hexdump((char *)ais->type6.bitdata,
(ais->type6.bitcount + 7) / 8));
break;
case 7: /* Binary Acknowledge */
@@ -2340,7 +2340,7 @@ void json_aivdm_dump(const struct ais_t *ais,
(void)snprintf(buf + strlen(buf), buflen - strlen(buf),
"\"data\":\"%zd:%s\"}\r\n",
ais->type8.bitcount,
- gpsd_hexdump(ais->type8.bitdata,
+ gpsd_hexdump((char *)ais->type8.bitdata,
(ais->type8.bitcount + 7) / 8));
break;
case 9: /* Standard SAR Aircraft Position Report */
@@ -2452,7 +2452,7 @@ void json_aivdm_dump(const struct ais_t *ais,
ais->type17.lon / AIS_GNSS_LATLON_SCALE,
ais->type17.lat / AIS_GNSS_LATLON_SCALE,
ais->type17.bitcount,
- gpsd_hexdump(ais->type17.bitdata,
+ gpsd_hexdump((char *)ais->type17.bitdata,
(ais->type17.bitcount + 7) / 8));
} else {
(void)snprintf(buf + strlen(buf), buflen - strlen(buf),
@@ -2460,7 +2460,7 @@ void json_aivdm_dump(const struct ais_t *ais,
ais->type17.lon,
ais->type17.lat,
ais->type17.bitcount,
- gpsd_hexdump(ais->type17.bitdata,
+ gpsd_hexdump((char *)ais->type17.bitdata,
(ais->type17.bitcount + 7) / 8));
}
break;
@@ -2745,7 +2745,7 @@ void json_aivdm_dump(const struct ais_t *ais,
ais->type25.dest_mmsi,
ais->type25.app_id,
ais->type25.bitcount,
- gpsd_hexdump(ais->type25.bitdata,
+ gpsd_hexdump((char *)ais->type25.bitdata,
(ais->type25.bitcount + 7) / 8));
break;
case 26: /* Binary Message, Multiple Slot */
@@ -2757,7 +2757,7 @@ void json_aivdm_dump(const struct ais_t *ais,
ais->type26.dest_mmsi,
ais->type26.app_id,
ais->type26.bitcount,
- gpsd_hexdump(ais->type26.bitdata,
+ gpsd_hexdump((char *)ais->type26.bitdata,
(ais->type26.bitcount + 7) / 8),
ais->type26.radio);
break;