Mercurial > ecos
changeset 1249:cfe2937847da
* src/common/clock.cxx: Removed label/goto
add_alarm_unlock_return to get rid of compiler error when
CYGIMP_KERNEL_COUNTERS_SORT_LIST is enabled.
| author | nickg |
|---|---|
| date | Fri, 26 Sep 2003 17:41:30 +0000 |
| parents | c6965db486b0 |
| children | 9af0b6bf194b |
| files | packages/kernel/current/ChangeLog packages/kernel/current/src/common/clock.cxx |
| diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/kernel/current/ChangeLog +++ b/packages/kernel/current/ChangeLog @@ -1,3 +1,9 @@ +2003-09-22 Reinhard Jessich <Reinhard.Jessich@frequentis.com> + + * src/common/clock.cxx: Removed label/goto + add_alarm_unlock_return to get rid of compiler error when + CYGIMP_KERNEL_COUNTERS_SORT_LIST is enabled. + 2003-09-01 Bart Veer <bartv@ecoscentric.com> * doc/kernel.sgml: fix typo, cyg_thread vs. cyg_thread_t
--- a/packages/kernel/current/src/common/clock.cxx +++ b/packages/kernel/current/src/common/clock.cxx @@ -384,7 +384,7 @@ void Cyg_Counter::add_alarm( Cyg_Alarm * if( list_alarm->trigger > alarm->trigger ) { alarm_list_ptr->insert( list_alarm, alarm ); - goto add_alarm_unlock_return; + return; } list_alarm = list_alarm->get_next(); @@ -393,15 +393,9 @@ void Cyg_Counter::add_alarm( Cyg_Alarm * // a lower or equal alarm time was not found, so drop through // so it is added to the list tail } - alarm_list_ptr->add_tail( alarm ); - - add_alarm_unlock_return: -#else - - alarm_list_ptr->add_tail( alarm ); - #endif + alarm_list_ptr->add_tail( alarm ); } // -------------------------------------------------------------------------
