diff options
author | cdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-30 14:58:50 +0000 |
---|---|---|
committer | cdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-30 14:58:50 +0000 |
commit | ad7d7ead70c81162185bcbe9dcc21bda0c2c761f (patch) | |
tree | 934134b69c15ca26394a7e5ea6666f73315058ea /TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp | |
parent | 02d7029cf07382c078f880b555e1f048da52db18 (diff) | |
download | ATCD-ad7d7ead70c81162185bcbe9dcc21bda0c2c761f.tar.gz |
added intermediate const cast for const void * args in qsort comparison function: this makes Sun C++ 4.2 happy.
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp index d12337aaf76..1519cf0b12c 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp @@ -1067,6 +1067,7 @@ TAO_RSE_Priority_Visitor () // priorities. template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int +TAO_RSE_Priority_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>:: visit (TAO_Reconfig_Scheduler_Entry &rse) { if (previous_entry_ == 0) @@ -1191,11 +1192,14 @@ noncritical_utilization () int TAO_MUF_Reconfig_Sched_Strategy::total_priority_comp (const void *s, const void *t) { - // Convert the passed pointers. + // Convert the passed pointers: the double cast is needed to + // make Sun C++ 4.2 happy. TAO_Reconfig_Scheduler_Entry **first = - ACE_reinterpret_cast (TAO_Reconfig_Scheduler_Entry **, s); + ACE_reinterpret_cast (TAO_Reconfig_Scheduler_Entry **, + ACE_const_cast (void *, s)); TAO_Reconfig_Scheduler_Entry **second = - ACE_reinterpret_cast (TAO_Reconfig_Scheduler_Entry **, t); + ACE_reinterpret_cast (TAO_Reconfig_Scheduler_Entry **, + ACE_const_cast (void *, t)); // Check the converted pointers. if (first == 0 || *first == 0) |