From b7336b07a2b2e554d950c999b9e64b2823d07139 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 8 Jun 2010 14:17:15 -0400 Subject: Introduce the gps_read() entry point and use it internally. This is as per the roadmap. Clients can still use gps_poll(). All regression tests pass. Clients run correectly live. --- cgps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgps.c') diff --git a/cgps.c b/cgps.c index 66b261da..46df2225 100644 --- a/cgps.c +++ b/cgps.c @@ -899,7 +899,7 @@ int main(int argc, char *argv[]) exit(2); } else if (data) { errno = 0; - if (gps_poll(&gpsdata) != 0) { + if (gps_read(&gpsdata) == -1) { fprintf(stderr, "cgps: socket error 4\n"); die(errno == 0 ? GPS_GONE : GPS_ERROR); } -- cgit v1.2.1