]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
system_win32: replace manual init code with `curlx_now_init()` call
authorViktor Szakats <commit@vsz.me>
Sun, 8 Mar 2026 14:26:21 +0000 (15:26 +0100)
committerViktor Szakats <commit@vsz.me>
Sun, 8 Mar 2026 17:17:11 +0000 (18:17 +0100)
The code actual init code remains identical after this patch. To make it
clearer where this initialization is called from, and to dedupe code.

Follow-up to b17ef873ae2151263667f4b6fb6abfe337e687dc #18009

Closes #20852

lib/system_win32.c

index 0f665cd620df5de2ac9872b84b39f9556ca3344f..f91a81a113f2647a8af2543bed9335720c53720a 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "system_win32.h"
 #include "curl_sspi.h"
+#include "curlx/timeval.h"
 
 /* Curl_win32_init() performs Win32 global initialization */
 CURLcode Curl_win32_init(long flags)
@@ -76,7 +77,7 @@ CURLcode Curl_win32_init(long flags)
   }
 #endif
 
-  QueryPerformanceFrequency(&Curl_freq);
+  curlx_now_init();
   return CURLE_OK;
 }