summaryrefslogtreecommitdiff
path: root/src/thread/pthread_create.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-05-07 23:37:10 -0400
committerRich Felker <dalias@aerifal.cx>2011-05-07 23:37:10 -0400
commit4c4e22d781d75a461097cccc2ecac5adbafb1a59 (patch)
tree0130e1e296075932808e72629256d81cb35458d1 /src/thread/pthread_create.c
parent99b8a25e941e54537bf39ca2f265c345f393f112 (diff)
downloadmusl-4c4e22d781d75a461097cccc2ecac5adbafb1a59.tar.gz
optimize compound-literal sigset_t's not to contain useless hurd bits
Diffstat (limited to 'src/thread/pthread_create.c')
-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 6545539b..0609aab1 100644
--- a/src/thread/pthread_create.c
+++ b/src/thread/pthread_create.c
@@ -45,7 +45,7 @@ static int start(void *p)
{
struct pthread *self = p;
if (self->unblock_cancel)
- __syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, &SIGPT_SET, 0, 8);
+ __syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, SIGPT_SET, 0, 8);
pthread_exit(self->start(self->start_arg));
return 0;
}
@@ -68,7 +68,7 @@ int pthread_create(pthread_t *res, const pthread_attr_t *attr, void *(*entry)(vo
if (!self) return ENOSYS;
if (!libc.threaded) {
- __syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, &SIGPT_SET, 0, 8);
+ __syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, SIGPT_SET, 0, 8);
libc.threaded = 1;
}