projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7886985
)
fix invalid implicit pointer conversion in pthread_key_create
author
Rich Felker
<dalias@aerifal.cx>
Fri, 4 Oct 2013 05:06:42 +0000
(
01:06
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 4 Oct 2013 05:06:42 +0000
(
01:06
-0400)
src/thread/pthread_key_create.c
patch
|
blob
|
history
diff --git
a/src/thread/pthread_key_create.c
b/src/thread/pthread_key_create.c
index e51cb02325d4908a8ac91b58d6b6afde47a5af6d..c29935c1fb05616d86a722fc7d57c8e3a3099118 100644
(file)
--- 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;
}