diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-09-05 14:39:06 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-09-05 14:39:06 +0000 |
commit | 567ba0691773b69019feec188ae4b7bf7dae335e (patch) | |
tree | 0887e0decdb4058f082cd081948c391886a1720a /lib | |
parent | 5b28602728d0ee79d8737b2fe64b1135c92c9b9b (diff) | |
download | FreeBSD-src-567ba0691773b69019feec188ae4b7bf7dae335e.zip FreeBSD-src-567ba0691773b69019feec188ae4b7bf7dae335e.tar.gz |
Same as pthread_setschedparam, use sizeof(struct sched_param) instead.
Diffstat (limited to 'lib')
-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 |