summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadqops.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/threadqops.c')
-rw-r--r--cpukit/score/src/threadqops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/threadqops.c b/cpukit/score/src/threadqops.c
index d19067fab1..c9e2b5d9ba 100644
--- a/cpukit/score/src/threadqops.c
+++ b/cpukit/score/src/threadqops.c
@@ -231,7 +231,7 @@ static Thread_Control *_Thread_queue_Priority_first(
{
RBTree_Node *first;
- first = _RBTree_First( &heads->Heads.Priority, RBT_LEFT );
+ first = _RBTree_Minimum( &heads->Heads.Priority );
return first != NULL ? THREAD_RBTREE_NODE_TO_THREAD( first ) : NULL;
}