clang-tidy: add arg names to prototypes where missing

Detected by `readability-named-parameter` with `HeaderFilterRegex: '.*'`,
or `CURL_CLANG_TIDYFLAGS='--header-filter=.*'`.

Follow-up to c878160e9c #20624

Closes #20657
This commit is contained in:
Viktor Szakats 2026-02-21 00:01:22 +01:00
parent 57a1cc5587
commit e8415ad3c7
No known key found for this signature in database
11 changed files with 24 additions and 22 deletions

View file

@ -72,7 +72,8 @@ struct Curl_addrinfo *Curl_he2ai(const struct hostent *he, int port);
#endif
bool Curl_is_ipaddr(const char *address);
CURLcode Curl_str2addr(const char *dotted, int port, struct Curl_addrinfo **);
CURLcode Curl_str2addr(const char *dotted, int port,
struct Curl_addrinfo **addrp);
#ifdef USE_UNIX_SOCKETS
struct Curl_addrinfo *Curl_unix2addr(const char *path, bool *longpath,

View file

@ -65,9 +65,9 @@ struct Curl_share {
#endif
};
CURLSHcode Curl_share_lock(struct Curl_easy *, curl_lock_data,
curl_lock_access);
CURLSHcode Curl_share_unlock(struct Curl_easy *, curl_lock_data);
CURLSHcode Curl_share_lock(struct Curl_easy *data, curl_lock_data type,
curl_lock_access accesstype);
CURLSHcode Curl_share_unlock(struct Curl_easy *data, curl_lock_data type);
/* convenience macro to check if this handle is using a shared SSL spool */
#define CURL_SHARE_ssl_scache(data) ((data)->share && \

View file

@ -47,7 +47,7 @@ struct FormInfo {
};
CURLcode Curl_getformdata(CURL *data,
curl_mimepart *,
curl_mimepart *finalform,
struct curl_httppost *post,
curl_read_callback fread_func);
#endif /* CURL_DISABLE_FORM_API */

View file

@ -85,7 +85,7 @@ void *Curl_hash_add(struct Curl_hash *h, void *key, size_t key_len, void *p);
void *Curl_hash_add2(struct Curl_hash *h, void *key, size_t key_len, void *p,
Curl_hash_elem_dtor dtor);
int Curl_hash_delete(struct Curl_hash *h, void *key, size_t key_len);
void *Curl_hash_pick(struct Curl_hash *, void *key, size_t key_len);
void *Curl_hash_pick(struct Curl_hash *h, void *key, size_t key_len);
void Curl_hash_destroy(struct Curl_hash *h);
size_t Curl_hash_count(struct Curl_hash *h);

View file

@ -100,13 +100,14 @@ CURLcode Curl_dynhds_add_custom(struct Curl_easy *data, bool is_connect,
void Curl_http_to_fold(struct dynbuf *bf);
void Curl_http_method(struct Curl_easy *data,
const char **method, Curl_HttpReq *);
const char **method, Curl_HttpReq *reqp);
/* protocol-specific functions set up to be called by the main engine */
CURLcode Curl_http_setup_conn(struct Curl_easy *data,
struct connectdata *conn);
CURLcode Curl_http(struct Curl_easy *data, bool *done);
CURLcode Curl_http_done(struct Curl_easy *data, CURLcode, bool premature);
CURLcode Curl_http_done(struct Curl_easy *data,
CURLcode status, bool premature);
CURLcode Curl_http_doing_pollset(struct Curl_easy *data,
struct easy_pollset *ps);
CURLcode Curl_http_perform_pollset(struct Curl_easy *data,

View file

@ -50,13 +50,13 @@ struct Curl_llist_node {
#endif
};
void Curl_llist_init(struct Curl_llist *, Curl_llist_dtor);
void Curl_llist_insert_next(struct Curl_llist *, struct Curl_llist_node *,
const void *, struct Curl_llist_node *ne);
void Curl_llist_append(struct Curl_llist *, const void *,
void Curl_llist_init(struct Curl_llist *l, Curl_llist_dtor dtor);
void Curl_llist_insert_next(struct Curl_llist *list, struct Curl_llist_node *e,
const void *p, struct Curl_llist_node *ne);
void Curl_llist_append(struct Curl_llist *list, const void *p,
struct Curl_llist_node *ne);
void Curl_node_remove(struct Curl_llist_node *);
void Curl_llist_destroy(struct Curl_llist *, void *);
void Curl_node_remove(struct Curl_llist_node *e);
void Curl_llist_destroy(struct Curl_llist *list, void *user);
/* Curl_llist_head() returns the first 'struct Curl_llist_node *', which
might be NULL */

View file

@ -27,7 +27,7 @@
* Prototypes for library-wide functions provided by multi.c
*/
void Curl_expire(struct Curl_easy *data, timediff_t milli, expire_id);
void Curl_expire(struct Curl_easy *data, timediff_t milli, expire_id id);
void Curl_expire_ex(struct Curl_easy *data,
timediff_t milli, expire_id id);
void Curl_expire_clear(struct Curl_easy *data);