Same as pthread_setschedparam, use sizeof(struct sched_param) instead.
This commit is contained in:
parent
be0bfdd207
commit
8549079365
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162037
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user