summaryrefslogtreecommitdiff
path: root/libgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-19 19:30:24 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-19 19:30:24 +0000
commitccca0962fbf1ffce799256fd05fa917170447052 (patch)
treefce942622b0b59e256139b28b1420bfc143c921d /libgps.c
parent5e8ed57bfdd5f2af710bb073a37bc36cb92d2a37 (diff)
downloadgpsd-ccca0962fbf1ffce799256fd05fa917170447052.tar.gz
Parsing of JSON VERSION response, with unit test.
Diffstat (limited to 'libgps.c')
-rw-r--r--libgps.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libgps.c b/libgps.c
index 322434de..b20aee4e 100644
--- a/libgps.c
+++ b/libgps.c
@@ -620,7 +620,7 @@ static void onsig(int sig)
exit(1);
}
-/* must start zeroed, otherwise the unit test will try to chaser garbage pinter fields. */
+/* must start zeroed, otherwise the unit test will try to chase garbage pinter fields. */
struct gps_data_t gpsdata;
static char buf[] = "GPSD,O=RMC 1207318966.000 0.005 49.026225 12.188348 375.20 19.20 10.40 70.8900 24.899 0.000 75.6699 38.40 ? 3\r\n$GPVTG,70.89,T,,M,48.40,N,89.6,K,A*34\r\n";
@@ -648,13 +648,14 @@ int main(int argc, char *argv[])
unpack_test = true;
break;
case 's':
- (void)printf("Sizes: rtcm2=%zd rtcm3=%zd ais=%zd compass=%zd raw=%zd devices=%zd\n",
+ (void)printf("Sizes: rtcm2=%zd rtcm3=%zd ais=%zd compass=%zd raw=%zd devices=%zd version=%zd\n",
sizeof(struct rtcm2_t),
sizeof(struct rtcm3_t),
sizeof(struct ais_t),
sizeof(struct compass_t),
sizeof(struct rawdata_t),
- sizeof(collect->devices));
+ sizeof(collect->devices),
+ sizeof(struct version_t));
exit(0);
case '?':
case 'h':