summaryrefslogtreecommitdiff
path: root/tests/cleanup0.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cleanup0.c')
-rw-r--r--tests/cleanup0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cleanup0.c b/tests/cleanup0.c
index 77626eb..18092d0 100644
--- a/tests/cleanup0.c
+++ b/tests/cleanup0.c
@@ -137,7 +137,7 @@ mythread(void * arg)
#pragma inline_depth()
#endif
- return (void *) result;
+ return (void *) (size_t)result;
}
int
@@ -191,7 +191,7 @@ main()
int fail = 0;
int result = 0;
- assert(pthread_join(t[i], (void **) &result) == 0);
+ assert(pthread_join(t[i], (void *) &result) == 0);
fail = (result == (int) PTHREAD_CANCELED);