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

@ -138,12 +138,12 @@ 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;
char *eff_url;
struct ConnInfo *conn;
curl_easy_getinfo(curl, CURLINFO_PRIVATE, &conn);
curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &eff_url);
MSG_OUT("DONE: %s => (%d) %s\n", eff_url, res, conn->error);
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);
@ -433,9 +433,9 @@ int main(void)
int fd;
GIOChannel *ch;
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;
fd = init_fifo();
if(fd == CURL_SOCKET_BAD) {