summaryrefslogtreecommitdiff
path: root/tsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tsd.c')
-rw-r--r--tsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tsd.c b/tsd.c
index 87a2268..691dca9 100644
--- a/tsd.c
+++ b/tsd.c
@@ -81,7 +81,7 @@ pthread_key_create(pthread_key_t *key, void (*destructor)(void *))
int
pthread_setspecific(pthread_key_t key, void *value)
{
- LPVOID keys;
+ void * keys[];
int inuse;
/* CRITICAL SECTION */
@@ -95,7 +95,7 @@ pthread_setspecific(pthread_key_t key, void *value)
if (! inuse)
return EINVAL;
- keys = TlsGetValue(_pthread_TSD_keys_TlsIndex);
+ keys = (void **) TlsGetValue(_pthread_TSD_keys_TlsIndex);
keys[key] = value;
return 0;
@@ -104,7 +104,7 @@ pthread_setspecific(pthread_key_t key, void *value)
void *
pthread_getspecific(pthread_key_t key)
{
- LPVOID keys;
+ void * keys[];
int inuse;
/* CRITICAL SECTION */
@@ -118,7 +118,7 @@ pthread_getspecific(pthread_key_t key)
if (! inuse)
return EINVAL;
- keys = TlsGetValue(_pthread_TSD_keys_TlsIndex);
+ keys = (void **) TlsGetValue(_pthread_TSD_keys_TlsIndex);
return keys[key];
}