diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-03 15:04:49 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-06 12:22:44 +0200 |
commit | 6d2becb78d46c82fd3bacfb94cbfd02e440f3d67 (patch) | |
tree | b354109b1fa3e7c37c6ed3f2dcce57a41a1bcc64 /cpukit/score/src/coretodcheck.c | |
parent | score: Add _TOD_Is_valid_new_time_of_day() (diff) | |
download | rtems-6d2becb78d46c82fd3bacfb94cbfd02e440f3d67.tar.bz2 |
score: Limit the CLOCK_REALTIME setting
Limit the CLOCK_REALTIME setting to ensure that the CLOCK_REALTIME is defined
for a system uptime of at least 114 years.
Diffstat (limited to 'cpukit/score/src/coretodcheck.c')
-rw-r--r-- | cpukit/score/src/coretodcheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/coretodcheck.c b/cpukit/score/src/coretodcheck.c index b42435aa43..8c012c5070 100644 --- a/cpukit/score/src/coretodcheck.c +++ b/cpukit/score/src/coretodcheck.c @@ -51,7 +51,7 @@ Status_Control _TOD_Is_valid_new_time_of_day( const struct timespec *tod ) return STATUS_INVALID_NUMBER; } - if ( _Watchdog_Is_far_future_timespec( tod ) ) { + if ( tod->tv_sec > TOD_SECONDS_1970_THROUGH_2400 ) { return STATUS_INVALID_NUMBER; } |