]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_WRITEFUNCTION.md: fix the callback proto in the example
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 May 2024 11:36:55 +0000 (13:36 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 17 May 2024 12:36:59 +0000 (14:36 +0200)
Reported-by: Michael Litwak
Fixes #13681
Closes #13687

docs/libcurl/opts/CURLOPT_WRITEFUNCTION.md

index 61a02c4c5e29633eb183b1262d00b8153d2a9e1f..dbf4cb35e200690eede5820fd822210de35b43fe 100644 (file)
@@ -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;