tests: add missing unsigned long casts to pthread_self()
[urcu.git] / tests / test_urcu_wfs.c
index a379fa39176c9453f1249748da21409b08e4c92f..9ec95ef197643f787b1c8e8fb61e755091f398e4 100644 (file)
@@ -213,7 +213,7 @@ fail:
        printf_verbose("enqueuer thread_end, thread id : %lx, tid %lu, "
                       "enqueues %llu successful_enqueues %llu, "
                       "empty_dest_enqueues %llu\n",
-                      pthread_self(),
+                       (unsigned long) pthread_self(),
                        (unsigned long) gettid(),
                       URCU_TLS(nr_enqueues),
                       URCU_TLS(nr_successful_enqueues),
@@ -270,7 +270,7 @@ static void do_test_pop_all(enum test_sync sync)
 static void *thr_dequeuer(void *_count)
 {
        unsigned long long *count = _count;
-       unsigned int counter;
+       unsigned int counter = 0;
 
        printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
                        "dequeuer", (unsigned long) pthread_self(),
@@ -308,7 +308,7 @@ static void *thr_dequeuer(void *_count)
        printf_verbose("dequeuer thread_end, thread id : %lx, tid %lu, "
                       "dequeues %llu, successful_dequeues %llu "
                       "pop_all %llu pop_last %llu\n",
-                      pthread_self(),
+                       (unsigned long) pthread_self(),
                        (unsigned long) gettid(),
                       URCU_TLS(nr_dequeues), URCU_TLS(nr_successful_dequeues),
                       URCU_TLS(nr_pop_all),
This page took 0.023482 seconds and 4 git commands to generate.