Ver código fonte

include/pthread_win32/pthread.h: fix code

Nathalie Furmento 12 anos atrás
pai
commit
8201675a4e
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      include/pthread_win32/pthread.h

+ 1 - 2
include/pthread_win32/pthread.h

@@ -383,8 +383,7 @@ static __inline int pthread_once (pthread_once_t *once, void (*oncefun)(void)) {
 }
 
 static __inline int pthread_key_create (pthread_key_t *key, void (*freefun)(void *)) {
-  (void)freefun;
-  DWORD res;
+  pthread_key_t res;
   winPthreadAssertWindows((res = TlsAlloc()) != 0xFFFFFFFF);
   *key = res;
   return 0;