From d26b52b7cfc4f2c73cf7d42ddada702c1c6c51a2 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Thu, 21 Aug 2014 15:22:24 +0000 Subject: [PATCH] test59: fix status type for mthread_join call Integer and pointer sizes may not be the same. --- minix/tests/test59.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);