diff options
author | Brad King <brad.king@kitware.com> | 2022-05-23 10:05:06 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-23 10:05:06 -0400 |
commit | e243b379ca2b684787dc251b6fc251817c721f68 (patch) | |
tree | 0214f28d11c61a46be223c12d8a073225b852906 /Source/cmFileCommand.cxx | |
parent | 846e2a2b5bc8cf3421494ebbdbf9abbed512732a (diff) | |
download | cmake-e243b379ca2b684787dc251b6fc251817c721f68.tar.gz |
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.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index e4728acfbb..4a65237e8b 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); |