diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-06-08 14:17:15 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-06-08 14:17:15 -0400 |
commit | b7336b07a2b2e554d950c999b9e64b2823d07139 (patch) | |
tree | 8ef53c0fce5c1f0a2f3a382b784eac63a30db98d /cgps.c | |
parent | 423df1ff3a2201c5b0e9d90359464b2c9fa11575 (diff) | |
download | gpsd-b7336b07a2b2e554d950c999b9e64b2823d07139.tar.gz |
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.
Diffstat (limited to 'cgps.c')
-rw-r--r-- | cgps.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |