aboutsummaryrefslogtreecommitdiff
path: root/lib/formdata.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2004-12-15 01:38:25 +0000
committerDan Fandrich <dan@coneharvesters.com>2004-12-15 01:38:25 +0000
commit1ba47e7af9edfa682faba73df8bf0dc240facb19 (patch)
tree38a53c7789ef88b169a8ee41642e702a2c34a904 /lib/formdata.c
parent9359498b065a98361c25a9635aac1284ea261903 (diff)
Add 'const' to immutable arrays.
Diffstat (limited to 'lib/formdata.c')
-rw-r--r--lib/formdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index fa26ebbe5..07e5a0ddf 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -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);