diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-30 09:50:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-30 11:07:31 +0200 |
commit | c6218c2407a433c5d46f3c248f8606a6d3339408 (patch) | |
tree | d4184bf5ef25de4698a1799080cfd850b4d2bc5c /cpukit/score | |
parent | PR1994: RBTree Compare Result Change (diff) | |
download | rtems-c6218c2407a433c5d46f3c248f8606a6d3339408.tar.bz2 |
score/scheduleredf: Simplify and fix warning
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/src/scheduleredf.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |