Skip to content

Commit

Permalink
CURLSHOPT_UNLOCKFUNC.3: fix the callback prototype
Browse files Browse the repository at this point in the history
Copy and paste error

Fixes #8573
Reported-by: Francisco Olarte
  • Loading branch information
bagder committed Mar 10, 2022
1 parent 7da29df commit d673c27
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/libcurl/opts/CURLSHOPT_UNLOCKFUNC.3
Expand Up @@ -5,7 +5,7 @@
.\" * | (__| |_| | _ <| |___
.\" * \___|\___/|_| \_\_____|
.\" *
.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
.\" * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
.\" *
.\" * This software is licensed as described in the file COPYING, which
.\" * you should have received as part of this distribution. The terms
Expand All @@ -26,8 +26,7 @@ CURLSHOPT_UNLOCKFUNC - mutex unlock callback
.nf
#include <curl/curl.h>

void unlockcb(CURL *handle, curl_lock_data data, curl_lock_access access,
void *userptr);
void unlockcb(CURL *handle, curl_lock_data data, void *userptr);

CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_UNLOCKFUNC, unlockcb);
.fi
Expand Down

0 comments on commit d673c27

Please sign in to comment.