mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 05:26:58 +08:00
cmCurl: Avoid using undocumented type for CURLOPT_NETRC values
Since upstream curl commit `2ec00372a1` (curl.h: change some enums to defines with L suffix, 2025-02-25), the `CURL_NETRC_*` constants are integer literals instead of `enum CURL_NETRC_OPTION`. It turns out that `curl_easy_setopt` has always expected a `long` anyway, and that `CURL_NETRC_OPTION` is not documented for public use. Fixes: #26754
This commit is contained in:
@@ -170,7 +170,7 @@ std::string cmCurlSetNETRCOption(::CURL* curl, const std::string& netrc_level,
|
||||
const std::string& netrc_file)
|
||||
{
|
||||
std::string e;
|
||||
CURL_NETRC_OPTION curl_netrc_level = CURL_NETRC_LAST;
|
||||
long curl_netrc_level = CURL_NETRC_LAST;
|
||||
::CURLcode res;
|
||||
|
||||
if (!netrc_level.empty()) {
|
||||
|
Reference in New Issue
Block a user