tests: constify command-line arguments

For libtests, tunits, units.

Also:
- lib3033: tidy up headers.
- lib/netrc: constify an arg in `Curl_parsenetrc()`.

Closes #18076
This commit is contained in:
Viktor Szakats 2025-07-29 11:27:48 +02:00
parent 3407bee8c8
commit cd586149d5
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
292 changed files with 347 additions and 346 deletions

View file

@ -390,7 +390,7 @@ const char *Curl_netrc_strerror(NETRCcode ret)
*/
NETRCcode Curl_parsenetrc(struct store_netrc *store, const char *host,
char **loginp, char **passwordp,
char *netrcfile)
const char *netrcfile)
{
NETRCcode retcode = NETRC_OK;
char *filealloc = NULL;

View file

@ -48,7 +48,8 @@ void Curl_netrc_init(struct store_netrc *s);
void Curl_netrc_cleanup(struct store_netrc *s);
NETRCcode Curl_parsenetrc(struct store_netrc *s, const char *host,
char **loginp, char **passwordp, char *filename);
char **loginp, char **passwordp,
const char *filename);
/* Assume: (*passwordp)[0]=0, host[0] != 0.
* If (*loginp)[0] = 0, search for login and password within a machine
* section in the netrc.