From 5418535247dd65acab7244552b008889018fda59 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 16 Feb 2011 07:53:41 -0500 Subject: Bug fix: RTCM2 JSON dumps get a device field. All regression tests pass. --- gpsdecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gpsdecode.c') 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) { -- cgit v1.2.1