mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
/W4: Fix name shadowing warnings
Parameter 'hostname' shadows global cvar 'hostname'.
This commit is contained in:
parent
417365fa77
commit
0c5a24152e
@ -13,7 +13,7 @@ size_t CURLWriteStringCallback(char* contents, size_t size, size_t nmemb, void*
|
||||
return size * nmemb;
|
||||
}
|
||||
|
||||
CURL* CURLInitRequest(const string& hostname, const string& request, string& response, curl_slist*& slist)
|
||||
CURL* CURLInitRequest(const string& remote, const string& request, string& response, curl_slist*& slist)
|
||||
{
|
||||
std::function<void(const char*)> fnError = [&](const char* errorMsg)
|
||||
{
|
||||
@ -36,7 +36,7 @@ CURL* CURLInitRequest(const string& hostname, const string& request, string& res
|
||||
}
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, slist);
|
||||
curl_easy_setopt(curl, CURLOPT_URL, hostname.c_str());
|
||||
curl_easy_setopt(curl, CURLOPT_URL, remote.c_str());
|
||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, request.c_str());
|
||||
curl_easy_setopt(curl, CURLOPT_POST, 1L);
|
||||
curl_easy_setopt(curl, CURLOPT_TIMEOUT, curl_timeout->GetInt());
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
size_t CURLWriteStringCallback(char* contents, size_t size, size_t nmemb, void* userp);
|
||||
|
||||
CURL* CURLInitRequest(const string& hostname, const string& request, string& response, curl_slist*& slist);
|
||||
CURL* CURLInitRequest(const string& remote, const string& request, string& response, curl_slist*& slist);
|
||||
CURLcode CURLSubmitRequest(CURL* curl, curl_slist*& slist);
|
||||
CURLINFO CURLRetrieveInfo(CURL* curl);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user