summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-12-10 22:10:57 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-12-10 22:10:57 +0000
commitcd45efd2ef8c09717e07c12c87d09f142cf0f334 (patch)
tree42f1d2f3afad4461aa6678903a576008e2967b90 /gpsd_json.c
parentaaf73381d2e846ada0b1bdc2a248eb859911d7cf (diff)
downloadgpsd-cd45efd2ef8c09717e07c12c87d09f142cf0f334.tar.gz
Fix a minor error in dumping of type 21 AIS messages.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd_json.c b/gpsd_json.c
index 675ddcd5..0f5a029f 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -1109,7 +1109,7 @@ void aivdm_json_dump(const struct ais_t *ais, bool scaled, /*@out@*/char *buf, s
case 21: /* Aid to Navigation */
if (scaled) {
(void)snprintf(buf+strlen(buf), buflen-strlen(buf),
- "\"type\":%s,\"name\":\"%s\",\"lon\":%.4f,"
+ "\"aid_type\":%s,\"name\":\"%s\",\"lon\":%.4f,"
"\"lat\":%.4f,\"accuracy\":%s,\"to_bow\":%u,"
"\"to_stern\":%u,\"to_port\":%u,"
"\"to_starboard\":%u,\"epfd\":\"%s\","
@@ -1133,7 +1133,7 @@ void aivdm_json_dump(const struct ais_t *ais, bool scaled, /*@out@*/char *buf, s
JSON_BOOL(ais->type21.virtual_aid));
} else {
(void)snprintf(buf+strlen(buf), buflen-strlen(buf),
- "\"type\":%u,\"name\":\"%s\",\"accuracy\":%s,"
+ "\"aid_type\":%u,\"name\":\"%s\",\"accuracy\":%s,"
"\"lon\":%d,\"lat\":%d,\"to_bow\":%u,"
"\"to_stern\":%u,\"to_port\":%u,\"to_starboard\":%u,"
"\"epfd\":%u,\"second\":%u,\"regional\":%u,"