summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-09-29 14:33:11 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-09-29 14:33:11 -0400
commit3c77874367f3b44fb4030df62c7bb5e128a19dcf (patch)
tree834ed58ceb9fc7beace857f122464d9c963a7741 /ntpshm.c
parent9cfee07284fa5fafe6d19b87d9d053f9d2cac2ac (diff)
downloadgpsd-3c77874367f3b44fb4030df62c7bb5e128a19dcf.tar.gz
splint and cppcheck cleanup. All regression tests pass.
Diffstat (limited to 'ntpshm.c')
-rw-r--r--ntpshm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ntpshm.c b/ntpshm.c
index 6282d4bd..552ae0f1 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -588,10 +588,12 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
"PPS Create Thread gpsd_ppsmonitor\n");
/* wait for the device to go active - makes this safe to call early */
+ /*@-infloops@*/
while (BAD_SOCKET(session->gpsdata.gps_fd)) {
/* gpsd_report(session->context->debug, LOG_PROG, "PPS thread awaiting device activation\n"); */
(void)sleep(1);
}
+ /*@+infloops@*/
/* Activates PPS support for RS-232 or USB devices only. */
if (!(session->sourcetype == source_rs232 || session->sourcetype == source_usb)) {