diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-13 12:56:53 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-14 00:02:05 +0200 |
commit | 66b077576313eda129bce9f58fdc894d857cb121 (patch) | |
tree | ce4989ca7204ca1fcdcc47dcc50c72d8a8898a6c /tests | |
parent | f3f5d82e2854991cd12ad5dcf022e8abbcea7038 (diff) |
checksrc: enhance the ASTERISKSPACE and update code accordingly
Fine: "struct hello *world"
Not fine: "struct hello* world" (and variations)
Closes #5386
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/lib582.c | 12 | ||||
-rw-r--r-- | tests/unit/unit1309.c | 4 | ||||
-rw-r--r-- | tests/unit/unit1608.c | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/tests/libtest/lib582.c b/tests/libtest/lib582.c index c0678b0e5..96841052b 100644 --- a/tests/libtest/lib582.c +++ b/tests/libtest/lib582.c @@ -44,7 +44,7 @@ struct ReadWriteSockets /** * Remove a file descriptor from a sockets array. */ -static void removeFd(struct Sockets* sockets, curl_socket_t fd, int mention) +static void removeFd(struct Sockets *sockets, curl_socket_t fd, int mention) { int i; @@ -64,7 +64,7 @@ static void removeFd(struct Sockets* sockets, curl_socket_t fd, int mention) /** * Add a file descriptor to a sockets array. */ -static void addFd(struct Sockets* sockets, curl_socket_t fd, const char *what) +static void addFd(struct Sockets *sockets, curl_socket_t fd, const char *what) { /** * To ensure we only have each file descriptor once, we remove it then add @@ -105,7 +105,7 @@ static void addFd(struct Sockets* sockets, curl_socket_t fd, const char *what) static int curlSocketCallback(CURL *easy, curl_socket_t s, int action, void *userp, void *socketp) { - struct ReadWriteSockets* sockets = userp; + struct ReadWriteSockets *sockets = userp; (void)easy; /* unused */ (void)socketp; /* unused */ @@ -129,7 +129,7 @@ static int curlSocketCallback(CURL *easy, curl_socket_t s, int action, */ static int curlTimerCallback(CURLM *multi, long timeout_ms, void *userp) { - struct timeval* timeout = userp; + struct timeval *timeout = userp; (void)multi; /* unused */ if(timeout_ms != -1) { @@ -169,7 +169,7 @@ static int checkForCompletion(CURLM *curl, int *success) return result; } -static int getMicroSecondTimeout(struct timeval* timeout) +static int getMicroSecondTimeout(struct timeval *timeout) { struct timeval now; ssize_t result; @@ -185,7 +185,7 @@ static int getMicroSecondTimeout(struct timeval* timeout) /** * Update a fd_set with all of the sockets in use. */ -static void updateFdSet(struct Sockets* sockets, fd_set* fdset, +static void updateFdSet(struct Sockets *sockets, fd_set* fdset, curl_socket_t *maxFd) { int i; diff --git a/tests/unit/unit1309.c b/tests/unit/unit1309.c index 9d885389d..880530313 100644 --- a/tests/unit/unit1309.c +++ b/tests/unit/unit1309.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -35,7 +35,7 @@ static void unit_stop(void) } -static void splayprint(struct Curl_tree * t, int d, char output) +static void splayprint(struct Curl_tree *t, int d, char output) { struct Curl_tree *node; int i; diff --git a/tests/unit/unit1608.c b/tests/unit/unit1608.c index 38d5cb278..9105e2847 100644 --- a/tests/unit/unit1608.c +++ b/tests/unit/unit1608.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -48,7 +48,7 @@ UNITTEST_START { int i; CURLcode code; - struct Curl_addrinfo* addrhead = addrs; + struct Curl_addrinfo *addrhead = addrs; struct Curl_easy *easy = curl_easy_init(); abort_unless(easy, "out of memory"); |