From 567ba0691773b69019feec188ae4b7bf7dae335e Mon Sep 17 00:00:00 2001 From: davidxu Date: Tue, 5 Sep 2006 14:39:06 +0000 Subject: Same as pthread_setschedparam, use sizeof(struct sched_param) instead. --- lib/libthr/thread/thr_setprio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libthr/thread/thr_setprio.c') diff --git a/lib/libthr/thread/thr_setprio.c b/lib/libthr/thread/thr_setprio.c index 78769d1..cca4771 100644 --- a/lib/libthr/thread/thr_setprio.c +++ b/lib/libthr/thread/thr_setprio.c @@ -56,7 +56,7 @@ _pthread_setprio(pthread_t pthread, int prio) ret = 0; } else { ret = thr_setschedparam(curthread->tid, - ¶m, sizeof(param)); + ¶m, sizeof(struct sched_param)); if (ret == -1) ret = errno; else @@ -72,7 +72,7 @@ _pthread_setprio(pthread_t pthread, int prio) ret = 0; } else { ret = thr_setschedparam(pthread->tid, ¶m, - sizeof(param)); + sizeof(struct sched_param)); if (ret == -1) ret = errno; else -- cgit v1.1