From 8f6a31459c8e57db79f14f8a80777136e006a1d3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 29 May 2015 15:03:02 +0200 Subject: [PATCH] posix: Fix clock_gettime() The _TOD_Get_zero_based_uptime_as_timespec() returns already the right value. --- cpukit/posix/src/clockgettime.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cpukit/posix/src/clockgettime.c b/cpukit/posix/src/clockgettime.c index 83a35d769a..b3adbc4713 100644 --- a/cpukit/posix/src/clockgettime.c +++ b/cpukit/posix/src/clockgettime.c @@ -43,7 +43,6 @@ int clock_gettime( #ifdef CLOCK_MONOTONIC if ( clock_id == CLOCK_MONOTONIC ) { _TOD_Get_zero_based_uptime_as_timespec( tp ); - --tp->tv_sec; return 0; } #endif @@ -51,7 +50,6 @@ int clock_gettime( #ifdef _POSIX_CPUTIME if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) { _TOD_Get_zero_based_uptime_as_timespec( tp ); - --tp->tv_sec; return 0; } #endif