about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-10-04 01:06:42 -0400
committerRich Felker <dalias@aerifal.cx>2013-10-04 01:06:42 -0400
commit38a0a4db2fffbebb5f029550266dbf915a399258 (patch)
tree84807ccf4f1bdfecf33a958e7cbecb66b067e69d /src
parent7886985e1390a64a97c63d9ff182a6483dd107cc (diff)
downloadmusl-38a0a4db2fffbebb5f029550266dbf915a399258.tar.gz
musl-38a0a4db2fffbebb5f029550266dbf915a399258.tar.xz
musl-38a0a4db2fffbebb5f029550266dbf915a399258.zip
fix invalid implicit pointer conversion in pthread_key_create
Diffstat (limited to 'src')
-rw-r--r--src/thread/pthread_key_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_key_create.c b/src/thread/pthread_key_create.c
index e51cb023..c29935c1 100644
--- a/src/thread/pthread_key_create.c
+++ b/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;
 		}