docs: use mresult as variable name for CURLMcode

This commit is contained in:
Daniel Stenberg 2025-12-16 13:47:45 +01:00
parent 56f600ec23
commit d21f4372ff
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
27 changed files with 126 additions and 126 deletions

View file

@ -86,7 +86,7 @@ int main(void)
struct timeval timeout;
int rc; /* select() return code */
CURLMcode mc; /* curl_multi_fdset() return code */
CURLMcode mresult; /* curl_multi_fdset() return code */
fd_set fdread;
fd_set fdwrite;
@ -121,10 +121,10 @@ int main(void)
}
/* get file descriptors from the transfers */
mc = curl_multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd);
mresult = curl_multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd);
if(mc != CURLM_OK) {
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc);
if(mresult != CURLM_OK) {
fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mresult);
break;
}