mirror of
https://github.com/curl/curl.git
synced 2026-07-06 17:17:16 +03:00
docs: rename CURLcode variables to 'result'
This commit is contained in:
parent
1c1472f836
commit
11fa692d3d
381 changed files with 1705 additions and 1695 deletions
|
|
@ -33,9 +33,9 @@ int main(void)
|
|||
{
|
||||
CURL *curl;
|
||||
|
||||
CURLcode res = curl_global_init(CURL_GLOBAL_ALL);
|
||||
if(res)
|
||||
return (int)res;
|
||||
CURLcode result = curl_global_init(CURL_GLOBAL_ALL);
|
||||
if(result)
|
||||
return (int)result;
|
||||
|
||||
curl = curl_easy_init();
|
||||
if(curl) {
|
||||
|
|
@ -46,7 +46,7 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_INTERFACE, "enp3s0");
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://curl.se/");
|
||||
|
||||
res = curl_easy_perform(curl);
|
||||
result = curl_easy_perform(curl);
|
||||
|
||||
/* always cleanup */
|
||||
curl_easy_cleanup(curl);
|
||||
|
|
@ -54,5 +54,5 @@ int main(void)
|
|||
|
||||
curl_global_cleanup();
|
||||
|
||||
return (int)res;
|
||||
return (int)result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue