Cleanup: cast pthread_self() return value to unsigned long
[urcu.git] / tests / test_urcu_hash.c
index 7a28677faf4a283d7827a51a4af73ce77f6cf977..514d0bcdcf20496805ef3fc97c90f3f51b6acb5a 100644 (file)
@@ -202,7 +202,8 @@ unsigned long test_compare(const void *key1, size_t key1_len,
 void *thr_count(void *arg)
 {
        printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
-                       "counter", pthread_self(), (unsigned long)gettid());
+                       "counter", (unsigned long) pthread_self(),
+                       (unsigned long) gettid());
 
        rcu_register_thread();
 
@@ -544,7 +545,8 @@ int main(int argc, char **argv)
        printf_verbose("Number of hash chains: %lu.\n",
                nr_hash_chains);
        printf_verbose("thread %-6s, thread id : %lx, tid %lu\n",
-                       "main", pthread_self(), (unsigned long)gettid());
+                       "main", (unsigned long) pthread_self(),
+                       (unsigned long) gettid());
 
        tid_reader = malloc(sizeof(*tid_reader) * nr_readers);
        if (!tid_reader) {
This page took 0.022778 seconds and 4 git commands to generate.