summaryrefslogtreecommitdiff
path: root/tests/semaphore4.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/semaphore4.c')
-rw-r--r--tests/semaphore4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/semaphore4.c b/tests/semaphore4.c
index 0ccd45a..3a28c7b 100644
--- a/tests/semaphore4.c
+++ b/tests/semaphore4.c
@@ -111,7 +111,7 @@ main()
assert(pthread_cancel(t[50]) == 0);
{
void* result;
- assert(pthread_join(t[50], (void *) &result) == 0);
+ assert(pthread_join(t[50], &result) == 0);
}
assert(sem_getvalue(&s, &value) == 0);
assert(-value == (MAX_COUNT - 1));