Merge pull request #3481 from alexrp/master
[mono.git] / mono / unit-tests / test-mono-linked-list-set.c
index 299a66cfdd0fc4420969c9bfd3c90f5254c32736..a5e01ebe09ec6e5f913e1ad936c822596d39ecde 100644 (file)
@@ -48,7 +48,7 @@ mono_hazard_pointer_clear_all (MonoThreadHazardPointers *hp, int retain)
 static void
 free_node (void *n)
 {
-       node_t *node = n;
+       node_t *node = (node_t *)n;
        assert (node->state == STATE_BUSY);
        node->state = STATE_OUT;
 }
@@ -56,7 +56,7 @@ free_node (void *n)
 static void*
 worker (void *arg)
 {
-       thread_data_t *thread_data = arg;
+       thread_data_t *thread_data = (thread_data_t *)arg;
        MonoThreadHazardPointers *hp;
        int skip = thread_data->skip;
        int i, j;
@@ -126,7 +126,6 @@ main (int argc, char *argv [])
 
        mono_threads_init (&thread_callbacks, 0);
 
-       mono_thread_smr_init ();
        mono_lls_init (&lls, free_node);
 
        for (i = 0; i < N; ++i) {