From be0bfdd20756471d9da58c91cd1fdcfd4263f3b9 Mon Sep 17 00:00:00 2001 From: David Xu Date: Tue, 5 Sep 2006 14:37:22 +0000 Subject: [PATCH] Pass correct parameter size. --- lib/libthr/thread/thr_setschedparam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libthr/thread/thr_setschedparam.c b/lib/libthr/thread/thr_setschedparam.c index d766e37ec1bf..5ed6a4957990 100644 --- a/lib/libthr/thread/thr_setschedparam.c +++ b/lib/libthr/thread/thr_setschedparam.c @@ -63,7 +63,7 @@ _pthread_setschedparam(pthread_t pthread, int policy, return (0); } ret = thr_setscheduler(curthread->tid, policy, param, - sizeof(param)); + sizeof(struct sched_param)); if (ret == -1) ret = errno; else { @@ -82,7 +82,7 @@ _pthread_setschedparam(pthread_t pthread, int policy, return (0); } ret = thr_setscheduler(pthread->tid, policy, param, - sizeof(param)); + sizeof(struct sched_param)); if (ret == -1) ret = errno; else {