tests: constify, make consts static

- lib509: constify an input string.
- add `static` to const data, where missing.
- tool1394: fix indentation.

Closes #17736
This commit is contained in:
Viktor Szakats 2025-06-24 16:50:23 +02:00
parent db512ee267
commit 1ec0da0149
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
14 changed files with 33 additions and 32 deletions

View file

@ -39,8 +39,8 @@ static CURLcode test_unit1610(char *arg)
#if !defined(CURL_DISABLE_AWS) || !defined(CURL_DISABLE_DIGEST_AUTH) \
|| defined(USE_LIBSSH2)
const char string1[] = "1";
const char string2[] = "hello-you-fool";
static const char string1[] = "1";
static const char string2[] = "hello-you-fool";
unsigned char output[CURL_SHA256_DIGEST_LENGTH];
unsigned char *testp = output;