summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-03-24 17:39:08 -0400
committerRich Felker <dalias@aerifal.cx>2014-03-24 17:39:08 -0400
commit689e0e6bf7ccf136ad870f103e4ef3a8554ff1bc (patch)
tree9691863132b21cc8d7aa9a1756c49411daef184f
parent0a8d98285f46f721dabf38485df916c02d6a4675 (diff)
downloadmusl-689e0e6bf7ccf136ad870f103e4ef3a8554ff1bc.tar.gz
fix pointer type mismatch and misplacement of const
-rw-r--r--src/thread/pthread_create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
index 08c74110..e0b5ef16 100644
--- a/src/thread/pthread_create.c
+++ b/src/thread/pthread_create.c
@@ -112,7 +112,7 @@ static int start(void *p)
/* pthread_key_create.c overrides this */
static const size_t dummy = 0;
weak_alias(dummy, __pthread_tsd_size);
-static const void *dummy_tsd[1] = { 0 };
+static void *const dummy_tsd[1] = { 0 };
weak_alias(dummy_tsd, __pthread_tsd_main);
static FILE *const dummy_file = 0;
@@ -148,7 +148,7 @@ int pthread_create(pthread_t *restrict res, const pthread_attr_t *restrict attrp
init_file_lock(__stdout_used);
init_file_lock(__stderr_used);
__syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, SIGPT_SET, 0, _NSIG/8);
- self->tsd = __pthread_tsd_main;
+ self->tsd = (void **)__pthread_tsd_main;
libc.threaded = 1;
}
if (attrp) attr = *attrp;