← Commit list

1128177a6f

Viktor Szakats
Viktor Szakats
2026-07-18
SUCCESS Duration: 186s

Subject

timeval: rename timer frequency variable

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+6 -6
@@ -27,24 +27,24 @@
#include "system_win32.h"
-static LARGE_INTEGER Curl_freq;
+static LARGE_INTEGER s_time_freq;
/* For tool or tests, we must initialize before calling curlx_now().
Providing this function here is wrong. */
void curlx_now_init(void)
{
- QueryPerformanceFrequency(&Curl_freq);
+ QueryPerformanceFrequency(&s_time_freq);
}
/* In case of bug fix this function has a counterpart in tool_util.c */
void curlx_pnow(struct curltime *pnow)
{
LARGE_INTEGER count;
- DEBUGASSERT(Curl_freq.QuadPart);
+ DEBUGASSERT(s_time_freq.QuadPart);
QueryPerformanceCounter(&count);
- pnow->tv_sec = (time_t)(count.QuadPart / Curl_freq.QuadPart);
- pnow->tv_usec = (int)((count.QuadPart % Curl_freq.QuadPart) * 1000000 /
- Curl_freq.QuadPart);
+ pnow->tv_sec = (time_t)(count.QuadPart / s_time_freq.QuadPart);
+ pnow->tv_usec = (int)((count.QuadPart % s_time_freq.QuadPart) * 1000000 /
+ s_time_freq.QuadPart);
}
#elif defined(HAVE_CLOCK_GETTIME_MONOTONIC) || \