diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-08-05 12:31:38 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-08-05 21:21:36 +0200 |
commit | 7e464f04014f820f3e935708de432205a7507b1e (patch) | |
tree | 8f2244ec132e6aa3f0cab07ad6d837f4bb0287d1 | |
parent | 25331a0e4a8ca6dc61fcbe57ba9c032d809d3915 (diff) |
Fix CURLSHOPT_UNLOCKFUNC function signature
(cf. <https://curl.se/libcurl/c/CURLSHOPT_UNLOCKFUNC.html>; I noticed this with
an experimental Emscripten --enable-curl --with-webdav build that failed with a
"RuntimeError: null function or function signature mismatch" during the call to
> rc = curl_easy_setopt(m_pCurl.get(), CURLOPT_SHARE, g_Init.pShare.get());
in the CurlSession ctor)
Change-Id: Iec4bd5a263484e2e615d0b7bb08928feb7dc4658
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171487
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
-rw-r--r-- | ucb/source/ucp/webdav-curl/CurlSession.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav-curl/CurlSession.cxx b/ucb/source/ucp/webdav-curl/CurlSession.cxx index 9976bda67c01..6eb3e3f2c41e 100644 --- a/ucb/source/ucp/webdav-curl/CurlSession.cxx +++ b/ucb/source/ucp/webdav-curl/CurlSession.cxx @@ -54,7 +54,7 @@ using namespace ::com::sun::star; namespace { void lock_cb(CURL*, curl_lock_data, curl_lock_access, void*); -void unlock_cb(CURL*, curl_lock_data, curl_lock_access, void*); +void unlock_cb(CURL*, curl_lock_data, void*); /// globals container struct Init @@ -126,8 +126,7 @@ void lock_cb(CURL* /*handle*/, curl_lock_data const data, curl_lock_access /*acc } } -void unlock_cb(CURL* /*handle*/, curl_lock_data const data, curl_lock_access /*access*/, - void* /*userptr*/) +void unlock_cb(CURL* /*handle*/, curl_lock_data const data, void* /*userptr*/) { assert(0 <= data && data < CURL_LOCK_DATA_LAST); g_Init.ShareLock[data].unlock(); |