From 102f05a4e93d592386b40974bea0b3f5a8d648da Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 17 Nov 2013 09:36:34 -0500 Subject: Fix up the pps=no build. All regression tests pass. --- libgps_json.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libgps_json.c') diff --git a/libgps_json.c b/libgps_json.c index 8534dea5..065e71a5 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -353,7 +353,7 @@ static int json_error_read(const char *buf, struct gps_data_t *gpsdata, return status; } -static int json_pps_read(const char *buf, struct gps_data_t *gpsdata, +int json_pps_read(const char *buf, struct gps_data_t *gpsdata, /*@null@*/ const char **endptr) { int real_sec = 0, real_nsec = 0, clock_sec = 0, clock_nsec = 0; @@ -361,6 +361,8 @@ static int json_pps_read(const char *buf, struct gps_data_t *gpsdata, const struct json_attr_t json_attrs_pps[] = { /* *INDENT-OFF* */ {"class", t_check, .dflt.check = "PPS"}, + {"device", t_string, .addr.string = gpsdata->dev.path, + .len = sizeof(gpsdata->dev.path)}, {"real_sec", t_integer, .addr.integer = &real_sec, .dflt.integer = 0}, {"real_nsec", t_integer, .addr.integer = &real_nsec, -- cgit v1.2.1