summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-20 16:52:53 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-20 16:52:53 -0500
commit54fb5427ed51ec65e620159ab0d0474d43b5145a (patch)
treebfd13a95e78a03bf0d98d6fe190cb7e40e9a085f /libgpsd_core.c
parent54fe1ec39a26c8cef311fdf7963f22252ebf5664 (diff)
downloadgpsd-54fb5427ed51ec65e620159ab0d0474d43b5145a.tar.gz
Avoid overexposure of an internal mask. EOF_SET -> EOF_IS
Also, use PPSDRIFT_SET as a client-side status flag for JSON PPS rather than the (not yet shipped) TIMEDRIFT_SET. Next release we're probably going to add a drift object for in-line time. No logic changes. All regression tests pass.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index f9eec664..149982fc 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -1226,7 +1226,7 @@ gps_mask_t gpsd_poll(struct gps_device_t *session)
if (strcmp((const char *)session->lexer.outbuffer, "# EOF\n") == 0) {
gpsd_report(&session->context->errout, LOG_PROG,
"synthetic EOF\n");
- return EOF_SET;
+ return EOF_IS;
}
else
gpsd_report(&session->context->errout, LOG_PROG,
@@ -1507,7 +1507,7 @@ int gpsd_multipoll(const bool data_ready,
for (fragments = 0; ; fragments++) {
gps_mask_t changed = gpsd_poll(device);
- if (changed == EOF_SET) {
+ if (changed == EOF_IS) {
gpsd_report(&device->context->errout, LOG_WARN,
"device signed off %s\n",
device->gpsdata.dev.path);