From 54fb5427ed51ec65e620159ab0d0474d43b5145a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 20 Feb 2015 16:52:53 -0500 Subject: 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. --- libgpsd_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgpsd_core.c') 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); -- cgit v1.2.1