mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:43:31 +03:00
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:
parent
db512ee267
commit
1ec0da0149
14 changed files with 33 additions and 32 deletions
|
|
@ -69,8 +69,8 @@ static void custom_free(void *ptr)
|
|||
|
||||
static CURLcode test_lib509(char *URL)
|
||||
{
|
||||
unsigned char a[] = {0x2f, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
|
||||
0x91, 0xa2, 0xb3, 0xc4, 0xd5, 0xe6, 0xf7};
|
||||
static const unsigned char a[] = {0x2f, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
|
||||
0x91, 0xa2, 0xb3, 0xc4, 0xd5, 0xe6, 0xf7};
|
||||
CURLcode res;
|
||||
CURL *curl;
|
||||
int asize;
|
||||
|
|
@ -98,7 +98,7 @@ static CURLcode test_lib509(char *URL)
|
|||
test_setopt(curl, CURLOPT_USERAGENT, "test509"); /* uses strdup() */
|
||||
|
||||
asize = (int)sizeof(a);
|
||||
str = curl_easy_escape(curl, (char *)a, asize); /* uses realloc() */
|
||||
str = curl_easy_escape(curl, (const char *)a, asize); /* uses realloc() */
|
||||
|
||||
if(seen)
|
||||
curl_mprintf("Callbacks were invoked!\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue