Fix busy_wait_for.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 1 Jun 2017 02:49:16 +0000 (11:49 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 1 Jun 2017 02:49:16 +0000 (11:49 +0900)
* src/npth.c (busy_wait_for): Remove comparison negation.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
src/npth.c

index f25f1d2..45ca7ee 100644 (file)
@@ -156,7 +156,7 @@ busy_wait_for (trylock_func_t trylock, void *lock,
          break;
        }
 
-      if (npth_timercmp (abstime, &ts, <))
+      if (npth_timercmp (abstime, &ts, <))
        {
          err = ETIMEDOUT;
          break;