Same as pthread_setschedparam, use sizeof(struct sched_param) instead.

This commit is contained in:
David Xu 2006-09-05 14:39:06 +00:00
parent be0bfdd207
commit 8549079365
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162037

View File

@ -56,7 +56,7 @@ _pthread_setprio(pthread_t pthread, int prio)
ret = 0;
} else {
ret = thr_setschedparam(curthread->tid,
&param, sizeof(param));
&param, 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, &param,
sizeof(param));
sizeof(struct sched_param));
if (ret == -1)
ret = errno;
else