From 8abd175669a6ec2e5b46216947e68eaf4bd29cdf Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 3 Sep 2021 09:33:01 +0200 Subject: score: Return status in _TOD_Adjust() --- cpukit/score/src/coretodadjust.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cpukit/score/src/coretodadjust.c') diff --git a/cpukit/score/src/coretodadjust.c b/cpukit/score/src/coretodadjust.c index a746b0e004..90c99803e1 100644 --- a/cpukit/score/src/coretodadjust.c +++ b/cpukit/score/src/coretodadjust.c @@ -22,12 +22,13 @@ #include -void _TOD_Adjust( +Status_Control _TOD_Adjust( const struct timespec *delta ) { ISR_lock_Context lock_context; struct timespec tod; + Status_Control status; /* * Currently, RTEMS does the adjustment in one movement. @@ -41,6 +42,8 @@ void _TOD_Adjust( _TOD_Acquire( &lock_context ); _TOD_Get( &tod ); _Timespec_Add_to( &tod, delta ); - _TOD_Set( &tod, &lock_context ); + status = _TOD_Set( &tod, &lock_context ); _TOD_Unlock(); + + return status; } -- cgit v1.2.3