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 e51cb02..c29935c 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;
                }