From: Rich Felker Date: Thu, 27 Jun 2013 01:34:44 +0000 (-0400) Subject: fix failure of pthread_setschedparam to pass correct param to kernel X-Git-Tag: v0.9.11~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21088aee2eb6bf12fd3b1db918ee4754989ff7da;p=oweals%2Fmusl.git fix failure of pthread_setschedparam to pass correct param to kernel the address of the pointer, rather than the pointer, was being passed. this was probably a copy-and-paste error from corresponding get code. --- diff --git a/src/thread/pthread_setschedparam.c b/src/thread/pthread_setschedparam.c index 8e8b5a19..c4738d64 100644 --- a/src/thread/pthread_setschedparam.c +++ b/src/thread/pthread_setschedparam.c @@ -4,7 +4,7 @@ int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *par { int r; __lock(t->killlock); - r = t->dead ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, ¶m); + r = t->dead ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param); __unlock(t->killlock); return r; }