From 4ff6090dfb9c947e894a7c1d0474b8d8d8f9031a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 6 Mar 2025 09:55:27 +0100 Subject: Style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/systemtime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/systemtime.c') diff --git a/src/systemtime.c b/src/systemtime.c index 2675fea..b086bc0 100644 --- a/src/systemtime.c +++ b/src/systemtime.c @@ -35,7 +35,7 @@ systemtime_get_time(double *t) #elif defined(_POSIX_TIMERS) /* POSIX timers */ struct timespec now; if (clock_gettime(CLOCK_REALTIME, &now)) { - perror("clock_gettime"); + weprintf("clock_gettime CLOCK_REALTIME:"); return -1; } *t = now.tv_sec + (now.tv_nsec / 1000000000.0); @@ -43,7 +43,7 @@ systemtime_get_time(double *t) #else /* other platforms */ struct timeval now; if (gettimeofday(&now, NULL)) { - perror("gettimeofday"); + weprintf("gettimeofday:"); return -1; } *t = now.tv_sec + (now.tv_usec / 1000000.0); -- cgit v1.2.3-70-g09d2