mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:37:18 +03:00
Add 'const' to immutable arrays.
This commit is contained in:
parent
9359498b06
commit
1ba47e7af9
10 changed files with 32 additions and 31 deletions
|
|
@ -261,7 +261,7 @@ static const char * ContentTypeForFilename (const char *filename,
|
|||
const char *extension;
|
||||
const char *type;
|
||||
};
|
||||
static struct ContentType ctts[]={
|
||||
static const struct ContentType ctts[]={
|
||||
{".gif", "image/gif"},
|
||||
{".jpg", "image/jpeg"},
|
||||
{".jpeg", "image/jpeg"},
|
||||
|
|
@ -1543,7 +1543,7 @@ char *Curl_FormBoundary(void)
|
|||
the same form won't be identical */
|
||||
size_t i;
|
||||
|
||||
static char table16[]="abcdef0123456789";
|
||||
static const char table16[]="abcdef0123456789";
|
||||
|
||||
retstring = (char *)malloc(BOUNDARY_LENGTH+1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue