diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2004-03-23 03:43:49 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-04-06 22:33:11 +0200 |
commit | 45c83d6c491a8d7b9c1df0109c0183c1a08a0ef7 (patch) | |
tree | 3c879412c28799957f5c920634efd512e93dced4 /pthread/pt-alloc.c | |
parent | 96e2b4283a91629905e799a719a9c1f7f8f6e6a8 (diff) |
2004-03-23 Marcus Brinkmann <marcus@gnu.org>
* sysdeps/generic/bits/mutex.h (__PTHREAD_MUTEX_INITIALIZER):
Remove compound statement.
(pthread_mutex_init): Use compound statement with initializer.
* pthread/pt-alloc.c (initialize_pthread): Likewise.
* sysdeps/generic/pt-mutex-init.c (_pthread_mutex_init): Likewise.
Diffstat (limited to 'pthread/pt-alloc.c')
-rw-r--r-- | pthread/pt-alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread/pt-alloc.c b/pthread/pt-alloc.c index 5cdc85d..7c15fe1 100644 --- a/pthread/pt-alloc.c +++ b/pthread/pt-alloc.c @@ -69,7 +69,7 @@ initialize_pthread (struct __pthread *new, int recycling) new->stack = 0; - new->state_lock = PTHREAD_MUTEX_INITIALIZER; + new->state_lock = (struct __pthread_mutex) PTHREAD_MUTEX_INITIALIZER; new->state_cond = PTHREAD_COND_INITIALIZER; new->cancelation_handlers = 0; |