diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-17 09:36:34 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-17 09:36:34 -0500 |
commit | 102f05a4e93d592386b40974bea0b3f5a8d648da (patch) | |
tree | fd1b1da79910114c821217d8eda5039c7cbabe0c /libgps_json.c | |
parent | a7c3cf50d4533fd1d01be4dffcdaaffb9a9d1ac8 (diff) | |
download | gpsd-102f05a4e93d592386b40974bea0b3f5a8d648da.tar.gz |
Fix up the pps=no build. All regression tests pass.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 4 |
1 files changed, 3 insertions, 1 deletions
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, |