diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-31 12:16:51 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-31 12:16:51 +0000 |
commit | dc177bc324f7f630839183ef816122a00a643384 (patch) | |
tree | f46b2ff9c250720c7ba6abfbd2cc38ce8642c19e /gpsd_json.c | |
parent | 3bbe1283da2e32d148de5c51026b99841a15e549 (diff) | |
download | gpsd-dc177bc324f7f630839183ef816122a00a643384.tar.gz |
Fix up some line terminations.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index eb261ede..dd914a7a 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -38,7 +38,7 @@ char *json_stringify(/*@out@*/char *to, size_t len, /*@in@*/const char *from) void json_version_dump(char *reply, size_t replylen) { (void)snprintf(reply, replylen, - "{\"class\":\"VERSION\",\"release\":\"" VERSION "\",\"rev\":\"$Id: gpsd.c 5957 2009-08-23 15:45:54Z esr $\",\"api_major\":%d,\"api_minor\":%d}", + "{\"class\":\"VERSION\",\"release\":\"" VERSION "\",\"rev\":\"$Id: gpsd.c 5957 2009-08-23 15:45:54Z esr $\",\"api_major\":%d,\"api_minor\":%d}\r\n", GPSD_API_MAJOR_VERSION, GPSD_API_MINOR_VERSION); } @@ -1152,7 +1152,7 @@ void aivdm_json_dump(struct ais_t *ais, bool scaled, char *buf, size_t buflen) "\"partno\":%u,", ais->type24.part); if (ais->type24.part == 0) { (void)snprintf(buf+strlen(buf), buflen-strlen(buf), - "\"shipname\":\"%s\"}", + "\"shipname\":\"%s\"}\r\n", json_stringify(buf1, sizeof(buf1), ais->type24.a.shipname)); } else if (ais->type24.part == 1) { if (scaled) { @@ -1170,7 +1170,7 @@ void aivdm_json_dump(struct ais_t *ais, bool scaled, char *buf, size_t buflen) ais->type24.b.callsign); if (AIS_AUXILIARY_MMSI(ais->mmsi)) { (void)snprintf(buf+strlen(buf), buflen-strlen(buf), - "mothership_\"mmsi\":%u}", + "mothership_\"mmsi\":%u}\r\n", ais->type24.b.mothership_mmsi); } else { (void)snprintf(buf+strlen(buf), buflen-strlen(buf), |