summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-09-05 14:37:22 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-09-05 14:37:22 +0000
commit5b28602728d0ee79d8737b2fe64b1135c92c9b9b (patch)
treed8386a7198ad0dca912483256fb5c1260303e3a5 /lib
parentf0b3d43b5261d31c29cedcc3308d61d581b4ce37 (diff)
downloadFreeBSD-src-5b28602728d0ee79d8737b2fe64b1135c92c9b9b.zip
FreeBSD-src-5b28602728d0ee79d8737b2fe64b1135c92c9b9b.tar.gz
Pass correct parameter size.
Diffstat (limited to 'lib')
-rw-r--r--lib/libthr/thread/thr_setschedparam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_setschedparam.c b/lib/libthr/thread/thr_setschedparam.c
index d766e37..5ed6a49 100644
--- a/lib/libthr/thread/thr_setschedparam.c
+++ b/lib/libthr/thread/thr_setschedparam.c
@@ -63,7 +63,7 @@ _pthread_setschedparam(pthread_t pthread, int policy,
return (0);
}
ret = thr_setscheduler(curthread->tid, policy, param,
- sizeof(param));
+ sizeof(struct sched_param));
if (ret == -1)
ret = errno;
else {
@@ -82,7 +82,7 @@ _pthread_setschedparam(pthread_t pthread, int policy,
return (0);
}
ret = thr_setscheduler(pthread->tid, policy, param,
- sizeof(param));
+ sizeof(struct sched_param));
if (ret == -1)
ret = errno;
else {
OpenPOWER on IntegriCloud