summaryrefslogtreecommitdiff
path: root/pthread/pt-alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread/pt-alloc.c')
-rw-r--r--pthread/pt-alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pthread/pt-alloc.c b/pthread/pt-alloc.c
index e8d3c033..30dcede0 100644
--- a/pthread/pt-alloc.c
+++ b/pthread/pt-alloc.c
@@ -69,8 +69,8 @@ initialize_pthread (struct __pthread *new, int recycling)
new->stack = 0;
- new->state_lock = PTHREAD_MUTEX_INITIALIZER;
- new->state_cond = PTHREAD_COND_INITIALIZER;
+ new->state_lock = (pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER;
+ new->state_cond = (pthread_cond_t) PTHREAD_COND_INITIALIZER;
new->cancelation_handlers = 0;