summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-23 14:05:06 (GMT)
committerBrad King <brad.king@kitware.com>2022-05-23 14:05:06 (GMT)
commite243b379ca2b684787dc251b6fc251817c721f68 (patch)
tree0214f28d11c61a46be223c12d8a073225b852906 /Source/cmFileCommand.cxx
parent846e2a2b5bc8cf3421494ebbdbf9abbed512732a (diff)
downloadCMake-e243b379ca2b684787dc251b6fc251817c721f68.zip
CMake-e243b379ca2b684787dc251b6fc251817c721f68.tar.gz
CMake-e243b379ca2b684787dc251b6fc251817c721f68.tar.bz2
cmFileCommand: Fix signature of CURLOPT_DEBUGFUNCTION callback
Curl documents that the callback should return type `int`.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index e4728ac..4a65237 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -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);