diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-09 01:53:18 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-09 01:53:18 +0000 |
commit | 91159304586eb62c4c94e3ed28337fe9b6ee9b44 (patch) | |
tree | 00f7cf54cebe97b78c3b90ad7d7919e86fc8e83e /gpsd_json.c | |
parent | 53486edd47c6b64d2e789f3500332a67ad6f3025 (diff) | |
download | gpsd-91159304586eb62c4c94e3ed28337fe9b6ee9b44.tar.gz |
Conforming JSON libraries don't like leading zeros on numeric literals.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index f30d0729..1f65a1e9 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -655,7 +655,7 @@ void aivdm_json_dump(struct ais_t *ais, bool scaled, char *buf, size_t buflen) (void)snprintf(buf, buflen, "{\"class\":\"AIS\",\"type\":%u,\"repeat\":%u," - "\"mmsi\":%09u,", + "\"mmsi\":%u,", ais->type, ais->repeat, ais->mmsi); #define JSON_BOOL(x) ((x)?"true":"false") |