diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-02-16 07:53:41 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-02-16 07:53:41 -0500 |
commit | 5418535247dd65acab7244552b008889018fda59 (patch) | |
tree | 1af52b6a1b3b8492b30df0c0cad348559b5d9851 /gpsdecode.c | |
parent | 9cd6c4b35d43b1bd7f140189ad86cab11688b5d8 (diff) | |
download | gpsd-5418535247dd65acab7244552b008889018fda59.tar.gz |
Bug fix: RTCM2 JSON dumps get a device field.
All regression tests pass.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r-- | gpsdecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsdecode.c b/gpsdecode.c index a3ab6fcf..8f1f2122 100644 --- a/gpsdecode.c +++ b/gpsdecode.c @@ -381,7 +381,7 @@ static void decode(FILE * fpin, FILE * fpout) else if (lexer.type == RTCM2_PACKET) { rtcm2_unpack(&rtcm2, (char *)lexer.isgps.buf); if (json) - json_rtcm2_dump(&rtcm2, buf, sizeof(buf)); + json_rtcm2_dump(&rtcm2, NULL, buf, sizeof(buf)); else rtcm2_sager_dump(&rtcm2, buf, sizeof(buf)); (void)fputs(buf, fpout); @@ -438,7 +438,7 @@ static void encode(FILE * fpin, FILE * fpout) if ((gpsdata.set & RTCM2_SET) != 0) { /* this works */ char outbuf[BUFSIZ]; - json_rtcm2_dump(&gpsdata.rtcm2, outbuf, sizeof(outbuf)); + json_rtcm2_dump(&gpsdata.rtcm2, NULL, outbuf, sizeof(outbuf)); (void)fputs(outbuf, fpout); } if ((gpsdata.set & AIS_SET) != 0) { |