From fb07f730c1dd400b6d2f79a5393ff5e3cdded73e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 13 Apr 2020 19:29:35 +0200 Subject: score: Return status in _TOD_Set() Update #3949. --- cpukit/score/src/coretodset.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cpukit/score/src/coretodset.c') diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c index 94ecd0b322..ed840ece2b 100644 --- a/cpukit/score/src/coretodset.c +++ b/cpukit/score/src/coretodset.c @@ -22,7 +22,7 @@ #include #include -bool _TOD_Set( +Status_Control _TOD_Set( const struct timespec *tod, ISR_lock_Context *lock_context ) @@ -31,14 +31,14 @@ bool _TOD_Set( uint64_t tod_as_ticks; uint32_t cpu_max; uint32_t cpu_index; - bool retval; + Status_Control status; _Assert( _TOD_Is_owner() ); - retval = _TOD_Hook_Run( TOD_ACTION_SET_CLOCK, tod ); - if ( retval == false ) { + status = _TOD_Hook_Run( TOD_ACTION_SET_CLOCK, tod ); + if ( status != STATUS_SUCCESSFUL ) { _TOD_Release( lock_context ); - return false; + return status; } timespec2bintime( tod, &tod_as_bintime ); @@ -75,5 +75,5 @@ bool _TOD_Set( _TOD.is_set = true; - return true; + return STATUS_SUCCESSFUL; } -- cgit v1.2.3