docs: rename CURLcode variables to 'result'

This commit is contained in:
Daniel Stenberg 2025-12-16 15:54:06 +01:00
parent d21f4372ff
commit 09f01f28ec
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
381 changed files with 1705 additions and 1695 deletions

View file

@ -208,7 +208,7 @@ static size_t write_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
int main(void)
{
CURLcode res;
CURLcode result;
unsigned i;
int total_failed = 0;
char errbuf[CURL_ERROR_SIZE] = { 0, };
@ -224,10 +224,10 @@ int main(void)
transfer[1].bodyfile = "400.txt";
transfer[1].logfile = "400_transfer_log.txt";
res = curl_global_init(CURL_GLOBAL_ALL);
if(res) {
result = curl_global_init(CURL_GLOBAL_ALL);
if(result) {
fprintf(stderr, "curl_global_init failed\n");
return (int)res;
return (int)result;
}
/* You could enable global tracing for extra verbosity when verbosity is
@ -277,7 +277,7 @@ int main(void)
if(t->bodyfp) {
/* Perform the transfer */
CURLcode result = curl_easy_perform(t->curl);
result = curl_easy_perform(t->curl);
/* Save the body file */
fclose(t->bodyfp);