This patch avoids that gcc reports the following compiler warning:

initialization from incompatible pointer type [-Wincompatible-pointer-types]
  pthread_cleanup_push(rcu_unregister, NULL);

Signed-off-by: Bart Van Assche <[email protected]>
---
 multipathd/main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index 8784307..0cd822b 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -1126,10 +1126,9 @@ out:
        return r;
 }
 
-static void *rcu_unregister(void *param)
+static void rcu_unregister(void *param)
 {
        rcu_unregister_thread();
-       return NULL;
 }
 
 static void *
-- 
2.9.2

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to