From e243b379ca2b684787dc251b6fc251817c721f68 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 23 May 2022 10:05:06 -0400 Subject: cmFileCommand: Fix signature of CURLOPT_DEBUGFUNCTION callback Curl documents that the callback should return type `int`. --- Source/cmFileCommand.cxx | 4 ++-- 1 file 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(data); -- cgit v0.12