Cleanup: cast poll delay return value to void
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Jun 2015 20:33:43 +0000 (16:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Jun 2015 20:33:43 +0000 (16:33 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-defer-impl.h

index c762400574cdea19947f0fd265d8c2a4fbb81f6e..2cff80792b0a4f6fecc7016e49667a809e36918b 100644 (file)
@@ -148,7 +148,7 @@ static void mutex_lock_defer(pthread_mutex_t *mutex)
        while ((ret = pthread_mutex_trylock(mutex)) != 0) {
                if (ret != EBUSY && ret != EINTR)
                        urcu_die(ret);
-               poll(NULL,0,10);
+               (void) poll(NULL,0,10);
        }
 #endif /* #else #ifndef DISTRUST_SIGNALS_EXTREME */
 }
@@ -373,7 +373,7 @@ static void *thr_defer(void *args)
                 */
                wait_defer();
                /* Sleeping after wait_defer to let many callbacks enqueue */
-               poll(NULL,0,100);       /* wait for 100ms */
+               (void) poll(NULL,0,100);        /* wait for 100ms */
                rcu_defer_barrier();
        }
 
This page took 0.026028 seconds and 4 git commands to generate.