checksrc: enhance the ASTERISKSPACE and update code accordingly

Fine: "struct hello *world"

Not fine: "struct hello* world" (and variations)

Closes #5386
This commit is contained in:
Daniel Stenberg 2020-05-13 12:56:53 +02:00
parent f3f5d82e28
commit 66b0775763
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
23 changed files with 56 additions and 56 deletions

View File

@ -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 * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -41,7 +41,7 @@ typedef struct curl_context_s {
static void curl_perform(int fd, short event, void *arg); static void curl_perform(int fd, short event, void *arg);
static curl_context_t* create_curl_context(curl_socket_t sockfd) static curl_context_t *create_curl_context(curl_socket_t sockfd)
{ {
curl_context_t *context; curl_context_t *context;

View File

@ -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 * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -46,7 +46,7 @@ typedef struct curl_context_s {
curl_socket_t sockfd; curl_socket_t sockfd;
} curl_context_t; } curl_context_t;
static curl_context_t* create_curl_context(curl_socket_t sockfd) static curl_context_t *create_curl_context(curl_socket_t sockfd)
{ {
curl_context_t *context; curl_context_t *context;

View File

@ -158,7 +158,7 @@ static bool init_resolve_thread(struct connectdata *conn,
/* Data for synchronization between resolver thread and its parent */ /* Data for synchronization between resolver thread and its parent */
struct thread_sync_data { struct thread_sync_data {
curl_mutex_t * mtx; curl_mutex_t *mtx;
int done; int done;
char *hostname; /* hostname to resolve, Curl_async.hostname char *hostname; /* hostname to resolve, Curl_async.hostname
@ -190,7 +190,7 @@ static struct thread_sync_data *conn_thread_sync_data(struct connectdata *conn)
/* Destroy resolver thread synchronization data */ /* Destroy resolver thread synchronization data */
static static
void destroy_thread_sync_data(struct thread_sync_data * tsd) void destroy_thread_sync_data(struct thread_sync_data *tsd)
{ {
if(tsd->mtx) { if(tsd->mtx) {
Curl_mutex_destroy(tsd->mtx); Curl_mutex_destroy(tsd->mtx);
@ -216,7 +216,7 @@ void destroy_thread_sync_data(struct thread_sync_data * tsd)
/* Initialize resolver thread synchronization data */ /* Initialize resolver thread synchronization data */
static static
int init_thread_sync_data(struct thread_data * td, int init_thread_sync_data(struct thread_data *td,
const char *hostname, const char *hostname,
int port, int port,
const struct addrinfo *hints) const struct addrinfo *hints)

View File

@ -640,10 +640,10 @@ sub scanfile {
} }
# check for 'char * name' # check for 'char * name'
if(($l =~ /(^.*(char|int|long|void|curl_slist|CURL|CURLM|CURLMsg|curl_httppost) *(\*+)) (\w+)/) && ($4 ne "const")) { if(($l =~ /(^.*(char|int|long|void|CURL|CURLM|CURLMsg|[cC]url_[A-Za-z_]+|struct [a-zA-Z_]+) *(\*+)) (\w+)/) && ($4 !~ /^(const|volatile)$/)) {
checkwarn("ASTERISKNOSPACE", checkwarn("ASTERISKSPACE",
$line, length($1), $file, $ol, $line, length($1), $file, $ol,
"no space after declarative asterisk"); "space after declarative asterisk");
} }
# check for 'char*' # check for 'char*'
if(($l =~ /(^.*(char|int|long|void|curl_slist|CURL|CURLM|CURLMsg|curl_httppost|sockaddr_in|FILE)\*)/)) { if(($l =~ /(^.*(char|int|long|void|curl_slist|CURL|CURLM|CURLMsg|curl_httppost|sockaddr_in|FILE)\*)/)) {

View File

@ -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 * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -48,7 +48,7 @@ struct curl_actual_call {
static void *curl_thread_create_thunk(void *arg) static void *curl_thread_create_thunk(void *arg)
{ {
struct curl_actual_call * ac = arg; struct curl_actual_call *ac = arg;
unsigned int (*func)(void *) = ac->func; unsigned int (*func)(void *) = ac->func;
void *real_arg = ac->arg; void *real_arg = ac->arg;

View File

@ -136,7 +136,7 @@ static int ftp_getsock(struct connectdata *conn, curl_socket_t *socks);
static int ftp_domore_getsock(struct connectdata *conn, curl_socket_t *socks); static int ftp_domore_getsock(struct connectdata *conn, curl_socket_t *socks);
static CURLcode ftp_doing(struct connectdata *conn, static CURLcode ftp_doing(struct connectdata *conn,
bool *dophase_done); bool *dophase_done);
static CURLcode ftp_setup_connection(struct connectdata * conn); static CURLcode ftp_setup_connection(struct connectdata *conn);
static CURLcode init_wc_data(struct connectdata *conn); static CURLcode init_wc_data(struct connectdata *conn);
static CURLcode wc_statemach(struct connectdata *conn); static CURLcode wc_statemach(struct connectdata *conn);

View File

@ -685,7 +685,7 @@ static void mime_mem_free(void *ptr)
/* Named file callbacks. */ /* Named file callbacks. */
/* Argument is a pointer to the mime part. */ /* Argument is a pointer to the mime part. */
static int mime_open_file(curl_mimepart * part) static int mime_open_file(curl_mimepart *part)
{ {
/* Open a MIMEKIND_FILE part. */ /* Open a MIMEKIND_FILE part. */

View File

@ -91,7 +91,7 @@ int Curl_wait_ms(int timeout_ms);
#ifdef TPF #ifdef TPF
int tpf_select_libcurl(int maxfds, fd_set* reads, fd_set* writes, int tpf_select_libcurl(int maxfds, fd_set* reads, fd_set* writes,
fd_set* excepts, struct timeval* tv); fd_set* excepts, struct timeval *tv);
#endif #endif
/* Winsock and TPF sockets are not in range [0..FD_SETSIZE-1], which /* Winsock and TPF sockets are not in range [0..FD_SETSIZE-1], which

View File

@ -7,7 +7,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 * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -200,10 +200,10 @@ extern OM_uint32 Curl_gss_delete_sec_context_a(OM_uint32 * minor_status,
/* Some socket functions must be wrapped to process textual addresses /* Some socket functions must be wrapped to process textual addresses
like AF_UNIX. */ like AF_UNIX. */
extern int Curl_os400_connect(int sd, struct sockaddr * destaddr, int addrlen); extern int Curl_os400_connect(int sd, struct sockaddr *destaddr, int addrlen);
extern int Curl_os400_bind(int sd, struct sockaddr * localaddr, int addrlen); extern int Curl_os400_bind(int sd, struct sockaddr *localaddr, int addrlen);
extern int Curl_os400_sendto(int sd, char *buffer, int buflen, int flags, extern int Curl_os400_sendto(int sd, char *buffer, int buflen, int flags,
struct sockaddr * dstaddr, int addrlen); struct sockaddr *dstaddr, int addrlen);
extern int Curl_os400_recvfrom(int sd, char *buffer, int buflen, int flags, extern int Curl_os400_recvfrom(int sd, char *buffer, int buflen, int flags,
struct sockaddr *fromaddr, int *addrlen); struct sockaddr *fromaddr, int *addrlen);
extern int Curl_os400_getpeername(int sd, struct sockaddr *addr, int *addrlen); extern int Curl_os400_getpeername(int sd, struct sockaddr *addr, int *addrlen);

View File

@ -73,7 +73,7 @@ char *decc$getenv(const char *__name);
# endif # endif
#endif #endif
struct passwd * decc_getpwuid(uid_t uid); struct passwd *decc_getpwuid(uid_t uid);
#ifdef __DECC #ifdef __DECC
# if __INITIAL_POINTER_SIZE == 32 # if __INITIAL_POINTER_SIZE == 32
@ -138,9 +138,9 @@ static char *vms_getenv(const char *envvar)
static struct passwd vms_passwd_cache; static struct passwd vms_passwd_cache;
static struct passwd * vms_getpwuid(uid_t uid) static struct passwd *vms_getpwuid(uid_t uid)
{ {
struct passwd * my_passwd; struct passwd *my_passwd;
/* Hack needed to support 64 bit builds, decc_getpwnam is 32 bit only */ /* Hack needed to support 64 bit builds, decc_getpwnam is 32 bit only */
#ifdef __DECC #ifdef __DECC

View File

@ -115,7 +115,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
gss_buffer_desc gss_send_token = GSS_C_EMPTY_BUFFER; gss_buffer_desc gss_send_token = GSS_C_EMPTY_BUFFER;
gss_buffer_desc gss_recv_token = GSS_C_EMPTY_BUFFER; gss_buffer_desc gss_recv_token = GSS_C_EMPTY_BUFFER;
gss_buffer_desc gss_w_token = GSS_C_EMPTY_BUFFER; gss_buffer_desc gss_w_token = GSS_C_EMPTY_BUFFER;
gss_buffer_desc* gss_token = GSS_C_NO_BUFFER; gss_buffer_desc *gss_token = GSS_C_NO_BUFFER;
gss_name_t server = GSS_C_NO_NAME; gss_name_t server = GSS_C_NO_NAME;
gss_name_t gss_client_name = GSS_C_NO_NAME; gss_name_t gss_client_name = GSS_C_NO_NAME;
unsigned short us_length; unsigned short us_length;

View File

@ -154,7 +154,7 @@ static CURLcode tftp_disconnect(struct connectdata *conn,
static CURLcode tftp_do(struct connectdata *conn, bool *done); static CURLcode tftp_do(struct connectdata *conn, bool *done);
static CURLcode tftp_done(struct connectdata *conn, static CURLcode tftp_done(struct connectdata *conn,
CURLcode, bool premature); CURLcode, bool premature);
static CURLcode tftp_setup_connection(struct connectdata * conn); static CURLcode tftp_setup_connection(struct connectdata *conn);
static CURLcode tftp_multi_statemach(struct connectdata *conn, bool *done); static CURLcode tftp_multi_statemach(struct connectdata *conn, bool *done);
static CURLcode tftp_doing(struct connectdata *conn, bool *dophase_done); static CURLcode tftp_doing(struct connectdata *conn, bool *dophase_done);
static int tftp_getsock(struct connectdata *conn, curl_socket_t *socks); static int tftp_getsock(struct connectdata *conn, curl_socket_t *socks);
@ -1384,7 +1384,7 @@ static CURLcode tftp_do(struct connectdata *conn, bool *done)
return result; return result;
} }
static CURLcode tftp_setup_connection(struct connectdata * conn) static CURLcode tftp_setup_connection(struct connectdata *conn)
{ {
struct Curl_easy *data = conn->data; struct Curl_easy *data = conn->data;
char *type; char *type;

View File

@ -865,8 +865,8 @@ static int IsMultiplexingPossible(const struct Curl_easy *handle,
#ifndef CURL_DISABLE_PROXY #ifndef CURL_DISABLE_PROXY
static bool static bool
proxy_info_matches(const struct proxy_info* data, proxy_info_matches(const struct proxy_info *data,
const struct proxy_info* needle) const struct proxy_info *needle)
{ {
if((data->proxytype == needle->proxytype) && if((data->proxytype == needle->proxytype) &&
(data->port == needle->port) && (data->port == needle->port) &&
@ -877,8 +877,8 @@ proxy_info_matches(const struct proxy_info* data,
} }
static bool static bool
socks_proxy_info_matches(const struct proxy_info* data, socks_proxy_info_matches(const struct proxy_info *data,
const struct proxy_info* needle) const struct proxy_info *needle)
{ {
if(!proxy_info_matches(data, needle)) if(!proxy_info_matches(data, needle))
return FALSE; return FALSE;
@ -2002,7 +2002,7 @@ static CURLcode setup_range(struct Curl_easy *data)
*/ */
static CURLcode setup_connection_internals(struct connectdata *conn) static CURLcode setup_connection_internals(struct connectdata *conn)
{ {
const struct Curl_handler * p; const struct Curl_handler *p;
CURLcode result; CURLcode result;
/* Perform setup complement if some. */ /* Perform setup complement if some. */

View File

@ -47,7 +47,7 @@ CURLcode Curl_init_do(struct Curl_easy *data, struct connectdata *conn);
CURLcode Curl_open(struct Curl_easy **curl); CURLcode Curl_open(struct Curl_easy **curl);
CURLcode Curl_init_userdefined(struct Curl_easy *data); CURLcode Curl_init_userdefined(struct Curl_easy *data);
void Curl_freeset(struct Curl_easy * data); void Curl_freeset(struct Curl_easy *data);
CURLcode Curl_uc_to_curlcode(CURLUcode uc); CURLcode Curl_uc_to_curlcode(CURLUcode uc);
CURLcode Curl_close(struct Curl_easy **datap); /* opposite of curl_open() */ CURLcode Curl_close(struct Curl_easy **datap); /* opposite of curl_open() */
CURLcode Curl_connect(struct Curl_easy *, bool *async, bool *protocol_connect); CURLcode Curl_connect(struct Curl_easy *, bool *async, bool *protocol_connect);

View File

@ -239,7 +239,7 @@ mbed_connect_step1(struct connectdata *conn,
int sockindex) int sockindex)
{ {
struct Curl_easy *data = conn->data; struct Curl_easy *data = conn->data;
struct ssl_connect_data* connssl = &conn->ssl[sockindex]; struct ssl_connect_data *connssl = &conn->ssl[sockindex];
struct ssl_backend_data *backend = connssl->backend; struct ssl_backend_data *backend = connssl->backend;
const char * const ssl_cafile = SSL_CONN_CONFIG(CAfile); const char * const ssl_cafile = SSL_CONN_CONFIG(CAfile);
const bool verifypeer = SSL_CONN_CONFIG(verifypeer); const bool verifypeer = SSL_CONN_CONFIG(verifypeer);
@ -535,7 +535,7 @@ mbed_connect_step2(struct connectdata *conn,
{ {
int ret; int ret;
struct Curl_easy *data = conn->data; struct Curl_easy *data = conn->data;
struct ssl_connect_data* connssl = &conn->ssl[sockindex]; struct ssl_connect_data *connssl = &conn->ssl[sockindex];
struct ssl_backend_data *backend = connssl->backend; struct ssl_backend_data *backend = connssl->backend;
const mbedtls_x509_crt *peercert; const mbedtls_x509_crt *peercert;
const char * const pinnedpubkey = SSL_IS_PROXY() ? const char * const pinnedpubkey = SSL_IS_PROXY() ?

View File

@ -83,8 +83,8 @@
dest->var = NULL; dest->var = NULL;
bool bool
Curl_ssl_config_matches(struct ssl_primary_config* data, Curl_ssl_config_matches(struct ssl_primary_config *data,
struct ssl_primary_config* needle) struct ssl_primary_config *needle)
{ {
if((data->version == needle->version) && if((data->version == needle->version) &&
(data->version_max == needle->version_max) && (data->version_max == needle->version_max) &&
@ -127,7 +127,7 @@ Curl_clone_primary_ssl_config(struct ssl_primary_config *source,
return TRUE; return TRUE;
} }
void Curl_free_primary_ssl_config(struct ssl_primary_config* sslc) void Curl_free_primary_ssl_config(struct ssl_primary_config *sslc)
{ {
Curl_safefree(sslc->CApath); Curl_safefree(sslc->CApath);
Curl_safefree(sslc->CAfile); Curl_safefree(sslc->CAfile);

View File

@ -138,11 +138,11 @@ CURLcode Curl_none_md5sum(unsigned char *input, size_t inputlen,
#define SSL_CONN_CONFIG(var) (SSL_IS_PROXY() ? \ #define SSL_CONN_CONFIG(var) (SSL_IS_PROXY() ? \
conn->proxy_ssl_config.var : conn->ssl_config.var) conn->proxy_ssl_config.var : conn->ssl_config.var)
bool Curl_ssl_config_matches(struct ssl_primary_config* data, bool Curl_ssl_config_matches(struct ssl_primary_config *data,
struct ssl_primary_config* needle); struct ssl_primary_config *needle);
bool Curl_clone_primary_ssl_config(struct ssl_primary_config *source, bool Curl_clone_primary_ssl_config(struct ssl_primary_config *source,
struct ssl_primary_config *dest); struct ssl_primary_config *dest);
void Curl_free_primary_ssl_config(struct ssl_primary_config* sslc); void Curl_free_primary_ssl_config(struct ssl_primary_config *sslc);
int Curl_ssl_getsock(struct connectdata *conn, curl_socket_t *socks); int Curl_ssl_getsock(struct connectdata *conn, curl_socket_t *socks);
int Curl_ssl_backend(void); int Curl_ssl_backend(void);

View File

@ -120,7 +120,7 @@ wolfssl_connect_step1(struct connectdata *conn,
{ {
char *ciphers; char *ciphers;
struct Curl_easy *data = conn->data; struct Curl_easy *data = conn->data;
struct ssl_connect_data* connssl = &conn->ssl[sockindex]; struct ssl_connect_data *connssl = &conn->ssl[sockindex];
struct ssl_backend_data *backend = connssl->backend; struct ssl_backend_data *backend = connssl->backend;
SSL_METHOD* req_method = NULL; SSL_METHOD* req_method = NULL;
curl_socket_t sockfd = conn->sock[sockindex]; curl_socket_t sockfd = conn->sock[sockindex];
@ -423,7 +423,7 @@ wolfssl_connect_step2(struct connectdata *conn,
{ {
int ret = -1; int ret = -1;
struct Curl_easy *data = conn->data; struct Curl_easy *data = conn->data;
struct ssl_connect_data* connssl = &conn->ssl[sockindex]; struct ssl_connect_data *connssl = &conn->ssl[sockindex];
struct ssl_backend_data *backend = connssl->backend; struct ssl_backend_data *backend = connssl->backend;
const char * const hostname = SSL_IS_PROXY() ? conn->http_proxy.host.name : const char * const hostname = SSL_IS_PROXY() ? conn->http_proxy.host.name :
conn->host.name; conn->host.name;
@ -760,7 +760,7 @@ static void Curl_wolfssl_cleanup(void)
} }
static bool Curl_wolfssl_data_pending(const struct connectdata* conn, static bool Curl_wolfssl_data_pending(const struct connectdata *conn,
int connindex) int connindex)
{ {
const struct ssl_connect_data *connssl = &conn->ssl[connindex]; const struct ssl_connect_data *connssl = &conn->ssl[connindex];

View File

@ -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 * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -176,7 +176,7 @@ static const char *getASN1Element(curl_asn1Element *elem,
* Search the null terminated OID or OID identifier in local table. * Search the null terminated OID or OID identifier in local table.
* Return the table entry pointer or NULL if not found. * Return the table entry pointer or NULL if not found.
*/ */
static const curl_OID * searchOID(const char *oid) static const curl_OID *searchOID(const char *oid)
{ {
const curl_OID *op; const curl_OID *op;
for(op = OIDtable; op->numoid; op++) for(op = OIDtable; op->numoid; op++)

View File

@ -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 * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -26,7 +26,7 @@
#include "memdebug.h" /* keep this as LAST include */ #include "memdebug.h" /* keep this as LAST include */
void config_init(struct OperationConfig* config) void config_init(struct OperationConfig *config)
{ {
memset(config, 0, sizeof(struct OperationConfig)); memset(config, 0, sizeof(struct OperationConfig));

View File

@ -44,7 +44,7 @@ struct ReadWriteSockets
/** /**
* Remove a file descriptor from a sockets array. * 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; 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. * 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 * 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, static int curlSocketCallback(CURL *easy, curl_socket_t s, int action,
void *userp, void *socketp) void *userp, void *socketp)
{ {
struct ReadWriteSockets* sockets = userp; struct ReadWriteSockets *sockets = userp;
(void)easy; /* unused */ (void)easy; /* unused */
(void)socketp; /* 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) static int curlTimerCallback(CURLM *multi, long timeout_ms, void *userp)
{ {
struct timeval* timeout = userp; struct timeval *timeout = userp;
(void)multi; /* unused */ (void)multi; /* unused */
if(timeout_ms != -1) { if(timeout_ms != -1) {
@ -169,7 +169,7 @@ static int checkForCompletion(CURLM *curl, int *success)
return result; return result;
} }
static int getMicroSecondTimeout(struct timeval* timeout) static int getMicroSecondTimeout(struct timeval *timeout)
{ {
struct timeval now; struct timeval now;
ssize_t result; ssize_t result;
@ -185,7 +185,7 @@ static int getMicroSecondTimeout(struct timeval* timeout)
/** /**
* Update a fd_set with all of the sockets in use. * 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) curl_socket_t *maxFd)
{ {
int i; int i;

View File

@ -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 * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * 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; struct Curl_tree *node;
int i; int i;

View File

@ -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 * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -48,7 +48,7 @@ UNITTEST_START
{ {
int i; int i;
CURLcode code; CURLcode code;
struct Curl_addrinfo* addrhead = addrs; struct Curl_addrinfo *addrhead = addrs;
struct Curl_easy *easy = curl_easy_init(); struct Curl_easy *easy = curl_easy_init();
abort_unless(easy, "out of memory"); abort_unless(easy, "out of memory");