summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorBeat Bolli <bbolli@ewanet.ch>2013-10-20 22:11:44 +0200
committerEric S. Raymond <esr@thyrsus.com>2013-10-20 21:15:00 -0400
commit809a7c3badbad2229bfdcf5716fc00bc60c49cf2 (patch)
tree3bc9e55c085ceccb6805bc7a83a3369b5ab3f974 /ntpshm.c
parentf5a697f344b8ef1475b35c30d910ee4f756c63d8 (diff)
downloadgpsd-809a7c3badbad2229bfdcf5716fc00bc60c49cf2.tar.gz
ntpshm.c: let the PPS init waiting loop terminate
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'ntpshm.c')
-rw-r--r--ntpshm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ntpshm.c b/ntpshm.c
index ceeec5d3..1ff3e9d9 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -596,7 +596,7 @@ void gpsd_await_pps_initialization(struct gps_context_t *context)
gpsd_report(context->debug, LOG_WARN,
"waiting on KPPS initalization...\n");
- while (dropdead > 0)
+ while (dropdead-- > 0)
{
/*@ -unrecog (splint has no pthread declarations as yet) @*/
(void)pthread_mutex_lock(&initialization_mutex);