summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/timergettime.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/timergettime.c')
-rw-r--r--cpukit/posix/src/timergettime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/timergettime.c b/cpukit/posix/src/timergettime.c
index 2a810ef42d..f065cc927c 100644
--- a/cpukit/posix/src/timergettime.c
+++ b/cpukit/posix/src/timergettime.c
@@ -49,7 +49,7 @@ int timer_gettime(
rtems_set_errno_and_return_minus_one( EINVAL );
/* Reads the current time */
- _TOD_Get( &current_time );
+ _TOD_Get_as_timespec( &current_time );
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {