spacecheck: warn for 3+ empty lines in a row, fix fallouts

Closes #18478
This commit is contained in:
Viktor Szakats 2025-09-04 15:25:27 +02:00
parent 5fa4fb0c13
commit ec9cb618a0
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
14 changed files with 5 additions and 26 deletions

View file

@ -245,7 +245,6 @@ static void timer_cb(struct GlobalInfo *g, int revents)
}
/* Clean up the SockInfo structure */
static void remsock(struct SockInfo *f, struct GlobalInfo *g)
{
@ -260,7 +259,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)
@ -287,7 +285,6 @@ static void setsock(struct SockInfo *f, curl_socket_t s, CURL *e, int act,
}
/* Initialize a new SockInfo structure */
static void addsock(curl_socket_t s, CURL *easy, int action,
struct GlobalInfo *g)
@ -328,7 +325,6 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
}
/* CURLOPT_WRITEFUNCTION */
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
{

View file

@ -165,7 +165,6 @@ static void mcode_or_die(const char *where, CURLMcode code)
}
/* Check for completed transfers, and remove their easy handles */
static void check_multi_info(struct GlobalInfo *g)
{
@ -193,7 +192,6 @@ static void check_multi_info(struct GlobalInfo *g)
}
/* Called by libevent when we get action on a multi socket */
static void event_cb(EV_P_ struct ev_io *w, int revents)
{
@ -243,7 +241,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)
@ -265,7 +262,6 @@ static void setsock(struct SockInfo *f, curl_socket_t s, CURL *e, int act,
}
/* Initialize a new SockInfo structure */
static void addsock(curl_socket_t s, CURL *easy, int action,
struct GlobalInfo *g)

View file

@ -188,7 +188,6 @@ static void check_multi_info(struct GlobalInfo *g)
}
/* Called by libevent when we get action on a multi socket */
static void event_cb(int fd, short kind, void *userp)
{
@ -212,7 +211,6 @@ static void event_cb(int fd, short kind, void *userp)
}
/* Called by libevent when our timeout expires */
static void timer_cb(int fd, short kind, void *userp)
{
@ -228,7 +226,6 @@ static void timer_cb(int fd, short kind, void *userp)
}
/* Clean up the SockInfo structure */
static void remsock(struct SockInfo *f)
{
@ -241,7 +238,6 @@ static void remsock(struct SockInfo *f)
}
/* Assign information to a SockInfo structure */
static void setsock(struct SockInfo *f, curl_socket_t s, CURL *e, int act,
struct GlobalInfo *g)
@ -261,7 +257,6 @@ static void setsock(struct SockInfo *f, curl_socket_t s, CURL *e, int act,
}
/* Initialize a new SockInfo structure */
static void addsock(curl_socket_t s, CURL *easy, int action,
struct GlobalInfo *g)
@ -302,7 +297,6 @@ static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
}
/* CURLOPT_WRITEFUNCTION */
static size_t write_cb(void *ptr, size_t size, size_t nmemb, void *data)
{