diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-06 15:30:47 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-09 08:30:03 +0200 |
commit | 2256946e9c0bc452004521d7aeeb68b72f680f42 (patch) | |
tree | 1a46bee10c6e92482125405b902ab75bfd8fd5e9 /cpukit/posix/src/clockgettime.c | |
parent | score: Simplify _Timestamp_Add_to() (diff) | |
download | rtems-2256946e9c0bc452004521d7aeeb68b72f680f42.tar.bz2 |
score: Use struct timespec for TOD
Use the timestamps only for uptime based values. Use struct timespec
for the absolute time values (TOD).
Update #2740.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/clockgettime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/clockgettime.c b/cpukit/posix/src/clockgettime.c index b3adbc4713..4f6c583ff1 100644 --- a/cpukit/posix/src/clockgettime.c +++ b/cpukit/posix/src/clockgettime.c @@ -37,7 +37,7 @@ int clock_gettime( rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { - _TOD_Get_as_timespec(tp); + _TOD_Get(tp); return 0; } #ifdef CLOCK_MONOTONIC |