diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-06-26 22:02:23 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-06-26 22:02:23 -0400 |
commit | b17c75a4d539d7ec5b81cc7ce7ce6b065a87e7a6 (patch) | |
tree | 4233d4e2828bf5f4c4165c9acd27a1b645b2ba1c /src | |
parent | 7c20a11801fd56cbadac5a6e88ddddf8656ac1bc (diff) | |
download | musl-b17c75a4d539d7ec5b81cc7ce7ce6b065a87e7a6.tar.gz musl-b17c75a4d539d7ec5b81cc7ce7ce6b065a87e7a6.tar.bz2 musl-b17c75a4d539d7ec5b81cc7ce7ce6b065a87e7a6.tar.xz musl-b17c75a4d539d7ec5b81cc7ce7ce6b065a87e7a6.zip |
fix syscall argument bug in pthread_getschedparam
the address of the pointer to the sched param, rather than the
pointer, was being passed to the kernel.
Diffstat (limited to 'src')
-rw-r--r-- | src/thread/pthread_getschedparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_getschedparam.c b/src/thread/pthread_getschedparam.c index 7b6a95f1..3053c186 100644 --- a/src/thread/pthread_getschedparam.c +++ b/src/thread/pthread_getschedparam.c @@ -7,7 +7,7 @@ int pthread_getschedparam(pthread_t t, int *restrict policy, struct sched_param if (t->dead) { r = ESRCH; } else { - r = -__syscall(SYS_sched_getparam, t->tid, ¶m); + r = -__syscall(SYS_sched_getparam, t->tid, param); if (!r) { *policy = __syscall(SYS_sched_getscheduler, t->tid); } |