]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
timeval: make `Curl_freq` variable static (Windows)
authorViktor Szakats <commit@vsz.me>
Sat, 18 Jul 2026 00:42:39 +0000 (02:42 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 18 Jul 2026 01:12:41 +0000 (03:12 +0200)
Follow-up to 64d4f5c4b660be112a02be104e7314e8bf264caa #20852

Closes #22346

lib/curlx/timeval.c
lib/system_win32.h

index 2363e6083944c1794e2cdb72f0cdbfa78bb64369..7e9f3f71e8891f287253127fbc35f1d88c388b13 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "system_win32.h"
 
-LARGE_INTEGER Curl_freq;
+static LARGE_INTEGER Curl_freq;
 
 /* For tool or tests, we must initialize before calling curlx_now().
    Providing this function here is wrong. */
index 8a51f096702a609cb1498aef781fcd78eca56f62..d504b563db4bae00ab4748fcdb4752b18e74cd68 100644 (file)
@@ -26,8 +26,6 @@
 #include "curl_setup.h"
 
 #ifdef _WIN32
-extern LARGE_INTEGER Curl_freq;
-
 CURLcode Curl_win32_init(long flags);
 void Curl_win32_cleanup(long init_flags);
 #else