diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 05:01:20 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 05:01:20 -0400 |
commit | a5f284d5685218b596c26192cfd04b57d30c05f7 (patch) | |
tree | c34d1c7bc93cca25dafa8fe320389672a0c43273 /gpsd_json.c | |
parent | d6312e3de44a1c3b9ee1d15ac6c30b2d06d09e6e (diff) | |
download | gpsd-a5f284d5685218b596c26192cfd04b57d30c05f7.tar.gz |
Change the API so the yermios strucytture is not publicly exposed.
Becauser this changed the libgpsd API but not the libgps one, libgpsd now
has its own version number. (Doing otherwise would have inflicted a gratuitous
binary-compatibility break on application developers).
All regression tests pass. Audit check runs clean.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 7a99c316..5a322024 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -398,7 +398,7 @@ void json_device_dump(const struct gps_device_t *device, (void)snprintf(reply + strlen(reply), replylen - strlen(reply), "\"native\":%d,\"bps\":%d,\"parity\":\"%c\",\"stopbits\":%u,\"cycle\":%2.2f", device->gpsdata.dev.driver_mode, - (int)gpsd_get_speed(&device->ttyset), + (int)gpsd_get_speed(device), device->gpsdata.dev.parity, device->gpsdata.dev.stopbits, device->gpsdata.dev.cycle); |