← Commit list

2c31dc45b4

Viktor Szakats
Viktor Szakats
2025-12-18
SUCCESS Duration: 228s

Subject

timeval: scope a variable, merge two PP branches

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/curlx/timeval.c+1 -3
@@ -89,9 +89,6 @@ void curlx_pnow(struct curltime *pnow)
** in any case the time starting point does not change once that the
** system has started up.
*/
-#ifdef HAVE_GETTIMEOFDAY
- struct timeval now;
-#endif
struct timespec tsnow;
/*
@@ -135,6 +132,7 @@ void curlx_pnow(struct curltime *pnow)
*/
#ifdef HAVE_GETTIMEOFDAY
else {
+ struct timeval now;
(void)gettimeofday(&now, NULL);
pnow->tv_sec = now.tv_sec;
pnow->tv_usec = (int)now.tv_usec;