Cleanup: cast poll delay return value to void
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 1 Jul 2015 14:03:39 +0000 (10:03 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 1 Jul 2015 14:03:39 +0000 (10:03 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu.c

diff --git a/urcu.c b/urcu.c
index 6f5b1e01ea04c09db4f7c5c261918750396254ea..94d1131e3dba6df7982a33def88f6ec3908c2bf2 100644 (file)
--- a/urcu.c
+++ b/urcu.c
@@ -149,7 +149,7 @@ static void mutex_lock(pthread_mutex_t *mutex)
                        _CMM_STORE_SHARED(URCU_TLS(rcu_reader).need_mb, 0);
                        cmm_smp_mb();
                }
-               poll(NULL,0,10);
+               (void) poll(NULL, 0, 10);
        }
 #endif /* #else #ifndef DISTRUST_SIGNALS_EXTREME */
 }
@@ -217,7 +217,7 @@ static void force_mb_all_readers(void)
        cds_list_for_each_entry(index, &registry, node) {
                while (CMM_LOAD_SHARED(index->need_mb)) {
                        pthread_kill(index->tid, SIGRCU);
-                       poll(NULL, 0, 1);
+                       (void) poll(NULL, 0, 1);
                }
        }
        cmm_smp_mb();   /* read ->need_mb before ending the barrier */
This page took 0.032948 seconds and 4 git commands to generate.