summaryrefslogtreecommitdiff
path: root/create.c
diff options
context:
space:
mode:
authorrpj <rpj>1998-10-14 19:51:06 +0000
committerrpj <rpj>1998-10-14 19:51:06 +0000
commit424ca52423ca124e4618e0e7a0dba22ea989ef09 (patch)
treeb63bdf933f381923fe99a09177c4acd07496f5bb /create.c
parent8c4d7f6bc1d365906724c92e4143fa021bf8a757 (diff)
Thu Oct 15 11:53:21 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* global.c (_pthread_tsd_key_table): Fix declaration. * implement.h(_pthread_TSD_keys_TlsIndex): Add missing extern. (_pthread_tsd_mutex): Ditto. * create.c (_pthread_start_call): Fix "keys" array declaration. Add comment. * tsd.c (pthread_setspecific): Fix type declaration and cast. (pthread_getspecific): Ditto. * cleanup.c (_pthread_destructor_run_all): Declare missing loop counter.
Diffstat (limited to 'create.c')
-rw-r--r--create.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/create.c b/create.c
index a0b8d02..6119198 100644
--- a/create.c
+++ b/create.c
@@ -22,7 +22,12 @@ STDCALL _pthread_start_call(void * us_arg)
this thread's private stack so we're safe to leave data in them
until we leave. */
pthread_t us;
- void * keys[PTHREAD_KEYS_MAX];
+
+ /* FIXME: Needs to be a malloc(PTHREAD_KEYS_MAX) otherwise changing
+ _PTHREAD_MAX_KEYS in a later version of the DLL will break older apps.
+ */
+ void * keys[_PTHREAD_MAX_KEYS];
+
unsigned (*func)(void *);
void * arg;
unsigned ret;