From: Augustin Degomme Date: Tue, 19 Jul 2022 07:38:05 +0000 (+0200) Subject: add casts in case types don't match (musl). Let's hope it does not break elsewhere X-Git-Tag: v3.32~141^2~3 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9b989509fa80930cd2b4cfa9b8253bc1d34dc655 add casts in case types don't match (musl). Let's hope it does not break elsewhere --- diff --git a/src/sthread/sthread.c b/src/sthread/sthread.c index 5b31764ceb..a444e23f68 100644 --- a/src/sthread/sthread.c +++ b/src/sthread/sthread.c @@ -70,7 +70,7 @@ int pthread_create(pthread_t* thread, const pthread_attr_t* attr, void* (*start_ return raw_pthread_create(thread, attr, start_routine, arg); sthread_inside_simgrid = 1; - int res = sthread_create(thread, attr, start_routine, arg); + int res = sthread_create((sthread_t*)thread, attr, start_routine, arg); sthread_inside_simgrid = 0; return res; } @@ -83,7 +83,7 @@ int pthread_join(pthread_t thread, void** retval) return raw_pthread_join(thread, retval); sthread_inside_simgrid = 1; - int res = sthread_join(thread, retval); + int res = sthread_join((sthread_t)thread, retval); sthread_inside_simgrid = 0; return res; }