mirror of
https://github.com/curl/curl.git
synced 2026-07-23 21:27:16 +03:00
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:
parent
3407bee8c8
commit
cd586149d5
292 changed files with 347 additions and 346 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue