[rtems commit] score/scheduleredf: Simplify and fix warning
Sebastian Huber
sebh at rtems.org
Fri Mar 30 09:06:49 UTC 2012
Module: rtems
Branch: master
Commit: c6218c2407a433c5d46f3c248f8606a6d3339408
Changeset: http://git.rtems.org/rtems/commit/?id=c6218c2407a433c5d46f3c248f8606a6d3339408
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Mar 30 09:50:10 2012 +0200
score/scheduleredf: Simplify and fix warning
---
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 09d8cac..0407122 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)
More information about the vc
mailing list