aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2020-01-06 03:01:33 -0500
committerJay Satiro <raysatiro@yahoo.com>2020-01-06 03:01:33 -0500
commite9dd17b754f0f1c3a695af0ddf4d2ba95e4dc69d (patch)
tree9d09073291440d7af0757db850717d3661ed22e9 /docs
parent459d0db45b263ab74940f526aec3799329940e52 (diff)
CURLOPT_READFUNCTION.3: fix variable name in example
Reported-by: Paul Joyce Fixes https://github.com/curl/curl/issues/4787
Diffstat (limited to 'docs')
-rw-r--r--docs/libcurl/opts/CURLOPT_READFUNCTION.32
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/libcurl/opts/CURLOPT_READFUNCTION.3 b/docs/libcurl/opts/CURLOPT_READFUNCTION.3
index 30b0925eb..ceb1c13f9 100644
--- a/docs/libcurl/opts/CURLOPT_READFUNCTION.3
+++ b/docs/libcurl/opts/CURLOPT_READFUNCTION.3
@@ -95,7 +95,7 @@ void setup(char *uploadthis)
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* pass in suitable argument to callback */
- curl_easy_setopt(curl, CURLOPT_READDATA, uploadthis);
+ curl_easy_setopt(curl, CURLOPT_READDATA, (void *)file);
result = curl_easy_perform(curl);
}