mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
docs: rename CURLcode variables to 'result'
This commit is contained in:
parent
d21f4372ff
commit
09f01f28ec
381 changed files with 1705 additions and 1695 deletions
|
|
@ -186,10 +186,10 @@ static void check_multi_info(struct GlobalInfo *g)
|
|||
while((msg = curl_multi_info_read(g->multi, &msgs_left))) {
|
||||
if(msg->msg == CURLMSG_DONE) {
|
||||
CURL *curl = msg->easy_handle;
|
||||
CURLcode res = msg->data.result;
|
||||
CURLcode result = msg->data.result;
|
||||
curl_easy_getinfo(curl, CURLINFO_PRIVATE, &conn);
|
||||
curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &eff_url);
|
||||
fprintf(MSG_OUT, "DONE: %s => (%d) %s\n", eff_url, res, conn->error);
|
||||
fprintf(MSG_OUT, "DONE: %s => (%d) %s\n", eff_url, result, conn->error);
|
||||
curl_multi_remove_handle(g->multi, curl);
|
||||
free(conn->url);
|
||||
curl_easy_cleanup(curl);
|
||||
|
|
@ -453,7 +453,7 @@ void sigint_handler(int signo)
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
CURLcode res;
|
||||
CURLcode result;
|
||||
struct GlobalInfo g;
|
||||
struct itimerspec its;
|
||||
struct epoll_event ev;
|
||||
|
|
@ -461,9 +461,9 @@ int main(int argc, char **argv)
|
|||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
res = curl_global_init(CURL_GLOBAL_ALL);
|
||||
if(res)
|
||||
return (int)res;
|
||||
result = curl_global_init(CURL_GLOBAL_ALL);
|
||||
if(result)
|
||||
return (int)result;
|
||||
|
||||
g_should_exit_ = 0;
|
||||
signal(SIGINT, sigint_handler);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue