gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH] ntpshm.c: let the PPS init waiting loop terminate


From: Beat Bolli
Subject: [gpsd-dev] [PATCH] ntpshm.c: let the PPS init waiting loop terminate
Date: Sun, 20 Oct 2013 22:11:44 +0200

---
 ntpshm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntpshm.c b/ntpshm.c
index ceeec5d..1ff3e9d 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);
-- 
1.8.4.rc3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]