tidy-up: whitespace

Closes #18553
This commit is contained in:
Viktor Szakats 2025-09-02 14:20:26 +02:00
parent 61b79dee79
commit a4196e2249
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
23 changed files with 51 additions and 90 deletions

View file

@ -88,7 +88,6 @@ struct GlobalInfo {
FILE *input;
};
/* Information associated with a specific easy handle */
struct ConnInfo {
CURL *easy;
@ -97,7 +96,6 @@ struct ConnInfo {
char error[CURL_ERROR_SIZE];
};
/* Information associated with a specific socket */
struct SockInfo {
curl_socket_t sockfd;
@ -167,7 +165,6 @@ static int multi_timer_cb(CURLM *multi, long timeout_ms, struct GlobalInfo *g)
return 0;
}
/* Check for completed transfers, and remove their easy handles */
static void check_multi_info(struct GlobalInfo *g)
{
@ -244,7 +241,6 @@ static void timer_cb(struct GlobalInfo *g, int revents)
check_multi_info(g);
}
/* Clean up the SockInfo structure */
static void remsock(struct SockInfo *f, struct GlobalInfo *g)
{
@ -258,7 +254,6 @@ static void remsock(struct SockInfo *f, struct GlobalInfo *g)
}
}
/* Assign information to a SockInfo structure */
static void setsock(struct SockInfo *f, curl_socket_t s, CURL *e, int act,
struct GlobalInfo *g)
@ -284,7 +279,6 @@ static void setsock(struct SockInfo *f, curl_socket_t s, CURL *e, int act,
s, strerror(errno));
}
/* Initialize a new SockInfo structure */
static void addsock(curl_socket_t s, CURL *easy, int action,
struct GlobalInfo *g)
@ -324,7 +318,6 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
return 0;
}
/* CURLOPT_WRITEFUNCTION */
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
{
@ -333,7 +326,6 @@ static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
return size * nmemb;
}
/* CURLOPT_PROGRESSFUNCTION */
static int prog_cb(void *p, double dltotal, double dlnow, double ult,
double uln)
@ -346,7 +338,6 @@ static int prog_cb(void *p, double dltotal, double dlnow, double ult,
return 0;
}
/* Create a new easy handle, and add it to the global curl_multi */
static void new_conn(const char *url, struct GlobalInfo *g)
{