mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
cmFileCommand: Fix signature of CURLOPT_DEBUGFUNCTION callback
Curl documents that the callback should return type `int`.
This commit is contained in:
@@ -1610,8 +1610,8 @@ size_t cmWriteToMemoryCallback(void* ptr, size_t size, size_t nmemb,
|
||||
return realsize;
|
||||
}
|
||||
|
||||
size_t cmFileCommandCurlDebugCallback(CURL*, curl_infotype type, char* chPtr,
|
||||
size_t size, void* data)
|
||||
int cmFileCommandCurlDebugCallback(CURL*, curl_infotype type, char* chPtr,
|
||||
size_t size, void* data)
|
||||
{
|
||||
cmFileCommandVectorOfChar& vec =
|
||||
*static_cast<cmFileCommandVectorOfChar*>(data);
|
||||
|
||||
Reference in New Issue
Block a user