diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-09-05 14:37:22 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-09-05 14:37:22 +0000 |
commit | 5b28602728d0ee79d8737b2fe64b1135c92c9b9b (patch) | |
tree | d8386a7198ad0dca912483256fb5c1260303e3a5 /lib | |
parent | f0b3d43b5261d31c29cedcc3308d61d581b4ce37 (diff) | |
download | FreeBSD-src-5b28602728d0ee79d8737b2fe64b1135c92c9b9b.zip FreeBSD-src-5b28602728d0ee79d8737b2fe64b1135c92c9b9b.tar.gz |
Pass correct parameter size.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libthr/thread/thr_setschedparam.c | 4 |
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 { |