Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURLOPT_XFERINFOFUNCTION man page: #8487

Closed
coralw opened this issue Feb 21, 2022 · 0 comments
Closed

CURLOPT_XFERINFOFUNCTION man page: #8487

coralw opened this issue Feb 21, 2022 · 0 comments
Assignees

Comments

@coralw
Copy link

coralw commented Feb 21, 2022

It seems that clientp and userp mismatch in the code example:

 static size_t progress_callback(void *clientp,
                                 curl_off_t dltotal,
                                 curl_off_t dlnow,
                                 curl_off_t ultotal,
                                 curl_off_t ulnow)
 {
   struct memory *progress = (struct progress *)userp;
 
   /* use the values */
 
   return 0; /* all is good */
 }

The man page is found here:
CURLOPT_XFERINFOFUNCTION explained
https://curl.se/libcurl/c/CURLOPT_XFERINFOFUNCTION.html

bagder added a commit that referenced this issue Feb 21, 2022
Reported-by: coralw on github
Fixes #8487
@bagder bagder self-assigned this Feb 21, 2022
@bagder bagder closed this as completed in a63c91a Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants