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/posix/src/adjtime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpukit/posix') diff --git a/cpukit/posix/src/adjtime.c b/cpukit/posix/src/adjtime.c index ab61693f19..ec8cb19a2e 100644 --- a/cpukit/posix/src/adjtime.c +++ b/cpukit/posix/src/adjtime.c @@ -44,6 +44,7 @@ int adjtime( ) { struct timespec delta_as_timespec; + Status_Control status; /* * Simple validations @@ -83,7 +84,10 @@ int adjtime( /* * Now apply the adjustment */ - _TOD_Adjust( &delta_as_timespec ); + status = _TOD_Adjust( &delta_as_timespec ); + if ( status != STATUS_SUCCESSFUL ) { + rtems_set_errno_and_return_minus_one( STATUS_GET_POSIX( status ) ); + } return 0; } -- cgit v1.2.3