diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-06-26 21:34:44 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-06-26 21:34:44 -0400 |
commit | 21088aee2eb6bf12fd3b1db918ee4754989ff7da (patch) | |
tree | 760042571e143d0ca36fd2fcbf0b943d6199e9d7 | |
parent | f03db4bdff7b2f02b5cbdda96cf0241efa4e80ef (diff) | |
download | musl-21088aee2eb6bf12fd3b1db918ee4754989ff7da.tar.gz musl-21088aee2eb6bf12fd3b1db918ee4754989ff7da.tar.bz2 musl-21088aee2eb6bf12fd3b1db918ee4754989ff7da.tar.xz musl-21088aee2eb6bf12fd3b1db918ee4754989ff7da.zip |
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.
-rw-r--r-- | src/thread/pthread_setschedparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |