浏览代码

include/pthread_win32/pthread.h: fix code

Nathalie Furmento 12 年之前
父节点
当前提交
8201675a4e
共有 1 个文件被更改,包括 1 次插入2 次删除
  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;