Browse Source

fix invalid implicit pointer conversion in pthread_key_create

Rich Felker 11 years ago
parent
commit
38a0a4db2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/thread/pthread_key_create.c

+ 1 - 1
src/thread/pthread_key_create.c

@@ -17,7 +17,7 @@ int pthread_key_create(pthread_key_t *k, void (*dtor)(void *))
 	__pthread_self_init();
 	if (!dtor) dtor = nodtor;
 	do {
-		if (!a_cas_p(keys+j, 0, dtor)) {
+		if (!a_cas_p(keys+j, 0, (void *)dtor)) {
 			*k = j;
 			return 0;
 		}