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

@ -27,7 +27,7 @@
#include "hsts.h"
#if defined(CURL_DISABLE_HTTP) || defined(CURL_DISABLE_HSTS)
static CURLcode test_unit1660(char *arg)
static CURLcode test_unit1660(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
puts("nothing to do when HTTP or HSTS are disabled");
@ -46,7 +46,7 @@ static void showsts(struct stsentry *e, const char *chost)
}
}
static CURLcode test_unit1660(char *arg)
static CURLcode test_unit1660(const char *arg)
{
UNITTEST_BEGIN_SIMPLE