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

@ -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);