From 424ca52423ca124e4618e0e7a0dba22ea989ef09 Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 14 Oct 1998 19:51:06 +0000 Subject: Thu Oct 15 11:53:21 1998 Ross Johnson * 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. --- create.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'create.c') 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; -- cgit v1.2.3