diff options
author | Betsy McPhail <betsy.mcphail@khq.kitware.com> | 2020-03-11 15:41:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-11 17:36:58 (GMT) |
commit | 7a1cce210baad152c834b7497ea34f50f5177390 (patch) | |
tree | 53fc84324fc8b8aee03ef1060dee6a07041e3d28 | |
parent | dd45b7b429ee70adfbaa522e42b9e51afcd1522d (diff) | |
download | CMake-7a1cce210baad152c834b7497ea34f50f5177390.zip CMake-7a1cce210baad152c834b7497ea34f50f5177390.tar.gz CMake-7a1cce210baad152c834b7497ea34f50f5177390.tar.bz2 |
CTest: Fix our internal CURL_DEBUGFUNCTION to conform to CURL docs
The curl debug callback function must return ``0``.
Fixes: #20449
-rw-r--r-- | Source/CTest/cmCTestCurl.cxx | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestSubmitHandler.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestCurl.cxx b/Source/CTest/cmCTestCurl.cxx index 3ad4749..69c5793 100644 --- a/Source/CTest/cmCTestCurl.cxx +++ b/Source/CTest/cmCTestCurl.cxx @@ -55,7 +55,7 @@ size_t curlDebugCallback(CURL* /*unused*/, curl_infotype /*unused*/, char* chPtr, size_t size, void* data) { cm::append(*static_cast<std::vector<char>*>(data), chPtr, chPtr + size); - return size; + return 0; } } diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index a8f201a..22ab48f 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -110,7 +110,7 @@ static size_t cmCTestSubmitHandlerCurlDebugCallback(CURL* /*unused*/, { cm::append(*static_cast<cmCTestSubmitHandlerVectorOfChar*>(data), chPtr, chPtr + size); - return size; + return 0; } cmCTestSubmitHandler::cmCTestSubmitHandler() |