diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-02-14 23:38:05 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-02-14 23:38:05 +0100 |
commit | dafd9844e9ade89d6447259af0d0e73cae966d50 (patch) | |
tree | 6bc0e9b72440bf469fffa4d23cab929aaade1786 | |
parent | ad718fa19cb5d223f493b9184f809bc0fba3a940 (diff) | |
download | curl-bagder/windows-timer-init.tar.gz |
fixup make Curl_isVistaOrGreater a bool insteadbagder/windows-timer-init
-rw-r--r-- | lib/easy.c | 6 | ||||
-rw-r--r-- | lib/timeval.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/easy.c b/lib/easy.c index ba122d905..d2d4166d5 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -98,7 +98,7 @@ static void win32_cleanup(void) #ifdef WIN32 LARGE_INTEGER Curl_freq; -int Curl_isVistaOrGreater = -1; +bool Curl_isVistaOrGreater; #endif /* win32_init() performs win32 socket initialization to properly setup the @@ -153,11 +153,11 @@ static CURLcode win32_init(void) #ifdef WIN32 if(Curl_verify_windows_version(6, 0, PLATFORM_WINNT, VERSION_GREATER_THAN_EQUAL)) { - Curl_isVistaOrGreater = 1; + Curl_isVistaOrGreater = TRUE; QueryPerformanceFrequency(&Curl_freq); } else - Curl_isVistaOrGreater = 0; + Curl_isVistaOrGreater = FALSE; #endif return CURLE_OK; diff --git a/lib/timeval.c b/lib/timeval.c index 089ed56a6..ff8d8a69a 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -26,7 +26,7 @@ /* set in win32_init() */ extern LARGE_INTEGER Curl_freq; -extern int Curl_isVistaOrGreater; +extern bool Curl_isVistaOrGreater; struct curltime Curl_now(void) { |