From: David van Moolenbroek Date: Thu, 21 Aug 2014 15:22:24 +0000 (+0000) Subject: test59: fix status type for mthread_join call X-Git-Tag: v3.3.0~54 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F2736%2F1;p=minix.git test59: fix status type for mthread_join call Integer and pointer sizes may not be the same. --- diff --git a/minix/tests/test59.c b/minix/tests/test59.c index 8d99453ef..f077ec70e 100644 --- a/minix/tests/test59.c +++ b/minix/tests/test59.c @@ -599,9 +599,9 @@ static void test_attributes(void) { attr_t tattr; thread_t tid; - int detachstate = -1, status = 0; + int detachstate = -1; unsigned int i, no_ints, stack_untouched = 1; - void *stackaddr, *newstackaddr; + void *status, *stackaddr, *newstackaddr; int *stackp; size_t stacksize, newstacksize; @@ -750,7 +750,7 @@ static void test_attributes(void) #error "Unsupported chip for this test" #endif - if (mthread_join(tid, (void *) &status) != 0) err(11, 69); + if (mthread_join(tid, &status) != 0) err(11, 69); if ((size_t) status != stacksize) err(11, 70); if (mthread_attr_destroy(&tattr) != 0) err(11, 71); if (mthread_mutex_destroy(condition_mutex) != 0) err(11, 72);