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

@ -50,11 +50,11 @@ int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
return select(nfds, rd, wr, exc, tv);
}
char *libtest_arg2 = NULL;
char *libtest_arg3 = NULL;
char *libtest_arg4 = NULL;
const char *libtest_arg2 = NULL;
const char *libtest_arg3 = NULL;
const char *libtest_arg4 = NULL;
int test_argc;
char **test_argv;
const char **test_argv;
int testnum;
struct curltime tv_test_start; /* for test timing */
@ -98,12 +98,12 @@ char *hexdump(const unsigned char *buf, size_t len)
}
int main(int argc, char **argv)
int main(int argc, const char **argv)
{
char *URL;
const char *URL;
CURLcode result;
entry_func_t entry_func;
char *entry_name;
const char *entry_name;
char *env;
size_t tmp;