fix invalid implicit pointer conversion in pthread_key_create
authorRich Felker <dalias@aerifal.cx>
Fri, 4 Oct 2013 05:06:42 +0000 (01:06 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 4 Oct 2013 05:06:42 +0000 (01:06 -0400)
src/thread/pthread_key_create.c

index e51cb02325d4908a8ac91b58d6b6afde47a5af6d..c29935c1fb05616d86a722fc7d57c8e3a3099118 100644 (file)
@@ -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;
                }