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 | 3869934a2d3c37046bf771816fc2a9275853f87c (patch) | |
tree | ca945a27ae854ea38b94bc317972c417e3f2c83c /pthread | |
parent | 165fba0793d197c83d3c30efbf75105460af2b5f (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')
-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 5cdc85df..7c15fe15 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; |