diff options
Diffstat (limited to 'lib/libthr/thread/thr_setprio.c')
-rw-r--r-- | lib/libthr/thread/thr_setprio.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |