summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_setschedparam.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>1999-12-28 18:13:04 +0000
committerdeischen <deischen@FreeBSD.org>1999-12-28 18:13:04 +0000
commit97c987240866817a96bf644288fc5f8aaeaf0f5a (patch)
tree9973ade3ef74b66254d4d072ab8fb57ee41212e4 /lib/libpthread/thread/thr_setschedparam.c
parent9321f383a24bce8e6555df4e36441e9bfcff4a27 (diff)
downloadFreeBSD-src-97c987240866817a96bf644288fc5f8aaeaf0f5a.zip
FreeBSD-src-97c987240866817a96bf644288fc5f8aaeaf0f5a.tar.gz
-Wall and minor style(9) cleanups.
Diffstat (limited to 'lib/libpthread/thread/thr_setschedparam.c')
-rw-r--r--lib/libpthread/thread/thr_setschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_setschedparam.c b/lib/libpthread/thread/thr_setschedparam.c
index 57e24e8..f080d5d 100644
--- a/lib/libpthread/thread/thr_setschedparam.c
+++ b/lib/libpthread/thread/thr_setschedparam.c
@@ -63,9 +63,9 @@ pthread_setschedparam(pthread_t pthread, int policy,
* queue before any adjustments are made to its
* active priority:
*/
+ old_prio = pthread->active_priority;
if ((pthread->flags & PTHREAD_FLAGS_IN_PRIOQ) != 0) {
in_readyq = 1;
- old_prio = pthread->active_priority;
PTHREAD_PRIOQ_REMOVE(pthread);
}
OpenPOWER on IntegriCloud