From 1b13ce3a6973653309cc402858e0c422842ad8ce Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 4 Feb 2019 17:48:52 -0800 Subject: libgps.3: Update gps_read() prototype. And some related nits. --- man/libgps.xml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'man') diff --git a/man/libgps.xml b/man/libgps.xml index 7e850c3d..7cb30dee 100644 --- a/man/libgps.xml +++ b/man/libgps.xml @@ -6,9 +6,9 @@ SPDX-License-Identifier: BSD-2-clause -14 Aug 2004 +4 Feb 2019 -3 +libgps 3 The GPSD Project GPSD Documentation @@ -29,7 +29,7 @@ C: int gps_open char *server - char * port + char *port struct gps_data_t *gpsdata @@ -40,6 +40,8 @@ C: int gps_read struct gps_data_t *gpsdata + char *message + int message_size bool gps_waiting @@ -313,9 +315,9 @@ libgps interface code from (void) gps_stream(&gps_data, WATCH_ENABLE | WATCH_JSON, NULL); /* Put this in a loop with a call to a high resolution sleep () in it. */ - if (gps_waiting (&gps_data, 500)) { + if (gps_waiting(&gps_data, 500)) { errno = 0; - if (gps_read (&gps_data) == -1) { + if (gps_read(&gps_data, NULL, 0) == -1) { ... } else { /* Display data from the GPS receiver. */ -- cgit v1.2.1