summaryrefslogtreecommitdiff
path: root/driver_aivdm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-28 18:31:19 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-28 18:31:19 +0000
commit254ce807d284ed470b2e0be5398a2532454b3b6e (patch)
treea16f384a98caba4dc20b45693a0a2294f02128a9 /driver_aivdm.c
parent2094619ca3b2e9973a8623d4507990a412f8cbfd (diff)
downloadgpsd-254ce807d284ed470b2e0be5398a2532454b3b6e.tar.gz
Regularize some JSON attribute names.
It's useful for the attribute vocabulary to be consistent across data classes, where possible.
Diffstat (limited to 'driver_aivdm.c')
-rw-r--r--driver_aivdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_aivdm.c b/driver_aivdm.c
index fb3164a6..7eeac790 100644
--- a/driver_aivdm.c
+++ b/driver_aivdm.c
@@ -688,7 +688,7 @@ void aivdm_dump(struct ais_t *ais, bool scaled, bool json, char *buf, size_t buf
#define NAVAIDTYPE_DISPLAY(n) (((n) < (sizeof(navaid_type_legends)/sizeof(navaid_type_legends[0]))) ? navaid_type_legends[n] : "INVALID NAVAID TYPE")
if (json)
- (void)snprintf(buf, buflen, "{\"class\":\"AIS\",\"msgtype\":%u,\"repeat\":%u,\"mmsi\":\"%09u\",", ais->msgtype, ais->repeat, ais->mmsi);
+ (void)snprintf(buf, buflen, "{\"class\":\"AIS\",\"type\":%u,\"repeat\":%u,\"mmsi\":\"%09u\",", ais->msgtype, ais->repeat, ais->mmsi);
else
(void)snprintf(buf, buflen, "%u,%u,%09u,", ais->msgtype, ais->repeat, ais->mmsi);
/*@ -formatconst @*/