Skip to content

Commit

Permalink
CURLOPT_WRITEFUNCTION.md: fix the callback proto in the example
Browse files Browse the repository at this point in the history
Reported-by: Michael Litwak
Fixes #13681
Closes #13687
  • Loading branch information
bagder committed May 17, 2024
1 parent 1a89538 commit 6d1e144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/libcurl/opts/CURLOPT_WRITEFUNCTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct memory {
size_t size;
};
static size_t cb(void *data, size_t size, size_t nmemb, void *clientp)
static size_t cb(char *data, size_t size, size_t nmemb, void *clientp)
{
size_t realsize = size * nmemb;
struct memory *mem = (struct memory *)clientp;
Expand Down

0 comments on commit 6d1e144

Please sign in to comment.