summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-09-05 14:39:06 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-09-05 14:39:06 +0000
commit567ba0691773b69019feec188ae4b7bf7dae335e (patch)
tree0887e0decdb4058f082cd081948c391886a1720a /lib/libthr
parent5b28602728d0ee79d8737b2fe64b1135c92c9b9b (diff)
downloadFreeBSD-src-567ba0691773b69019feec188ae4b7bf7dae335e.zip
FreeBSD-src-567ba0691773b69019feec188ae4b7bf7dae335e.tar.gz
Same as pthread_setschedparam, use sizeof(struct sched_param) instead.
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_setprio.c4
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,
- &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
OpenPOWER on IntegriCloud