cmFileCommand: Fix signature of CURLOPT_DEBUGFUNCTION callback

Curl documents that the callback should return type `int`.
This commit is contained in:
Brad King 2022-05-23 10:05:06 -04:00
parent 846e2a2b5b
commit e243b379ca

View File

@ -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);