diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-18 22:05:18 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-18 22:05:18 +0000 |
commit | 725d92318b10e1d29e57977125974f59d5612f7f (patch) | |
tree | 7ac0f1e96ea2f5237304ab9e66279888b4aabb36 /libgps_json.c | |
parent | cb7e7527b1c5aff41a47dd08f842c0467120a411 (diff) | |
download | gpsd-725d92318b10e1d29e57977125974f59d5612f7f.tar.gz |
Cleanups made possible by last refactoring.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgps_json.c b/libgps_json.c index a901c8c9..faf660c7 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -145,9 +145,9 @@ static int json_device_read(const char *buf, { const struct json_attr_t json_attrs_device[] = { {"class", check, .dflt.check = "DEVICE"}, - {"path", string, .addr.string.ptr = gpsdata->gps_device, - .addr.string.len = PATH_MAX}, - {"activated", real, .addr.real = &gpsdata->fix.time}, + {"path", string, .addr.string.ptr = gpsdata->devices.list[0].path, + .addr.string.len = GPS_PATH_MAX}, + {"activated", real, .addr.real = &gpsdata->devices.time}, // type (list), driver, subtype {NULL}, }; |