From c6218c2407a433c5d46f3c248f8606a6d3339408 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 30 Mar 2012 09:50:10 +0200 Subject: score/scheduleredf: Simplify and fix warning --- cpukit/score/src/scheduleredf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit') diff --git a/cpukit/score/src/scheduleredf.c b/cpukit/score/src/scheduleredf.c index 09d8cac363..0407122ce2 100644 --- a/cpukit/score/src/scheduleredf.c +++ b/cpukit/score/src/scheduleredf.c @@ -20,8 +20,8 @@ static int _Scheduler_EDF_RBTree_compare_function ( - RBTree_Node* n1, - RBTree_Node* n2 + const RBTree_Node* n1, + const RBTree_Node* n2 ) { Priority_Control value1 = _RBTree_Container_of @@ -33,7 +33,7 @@ static int _Scheduler_EDF_RBTree_compare_function * This function compares only numbers for the red-black tree, * but priorities have an opposite sense. */ - return (-1)*_Scheduler_Is_priority_higher_than(value1, value2); + return (-1)*_Scheduler_Priority_compare(value1, value2); } void _Scheduler_EDF_Initialize(void) -- cgit v1.2.3