mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:43:38 +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
|
|
@ -49,7 +49,7 @@ For the actual C file, here's a simple example:
|
|||
|
||||
#include "a libcurl header.h" /* from the lib dir */
|
||||
|
||||
static CURLcode test_unit9998(char *arg)
|
||||
static CURLcode test_unit9998(const char *arg)
|
||||
{
|
||||
UNITTEST_BEGIN_SIMPLE
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ Here's an example using optional initialization and cleanup:
|
|||
/* done before shutting down and exiting */
|
||||
}
|
||||
|
||||
static CURLcode test_unit9999(char *arg)
|
||||
static CURLcode test_unit9999(const char *arg)
|
||||
{
|
||||
UNITTEST_BEGIN(t9999_setup())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue