Added const qualifier for the strings
diff --git a/contiki/apps/html-strings.c b/contiki/apps/html-strings.c
index 968f857..6292280 100644
--- a/contiki/apps/html-strings.c
+++ b/contiki/apps/html-strings.c
@@ -1,108 +1,108 @@
-char html_slasha[4] =
+const char html_slasha[4] =
/* "/a\0" */
{0x2f, 0x61, 00, };
-char html_slashcenter[9] =
+const char html_slashcenter[9] =
/* "/center\0" */
{0x2f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 00, };
-char html_slashform[7] =
+const char html_slashform[7] =
/* "/form\0" */
{0x2f, 0x66, 0x6f, 0x72, 0x6d, 00, };
-char html_slashh[4] =
+const char html_slashh[4] =
/* "/h\0" */
{0x2f, 0x68, 00, };
-char html_slashscript[9] =
+const char html_slashscript[9] =
/* "/script\0" */
{0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 00, };
-char html_slashselect[9] =
+const char html_slashselect[9] =
/* "/select\0" */
{0x2f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 00, };
-char html_slashstyle[8] =
+const char html_slashstyle[8] =
/* "/style\0" */
{0x2f, 0x73, 0x74, 0x79, 0x6c, 0x65, 00, };
-char html_a[3] =
+const char html_a[3] =
/* "a\0" */
{0x61, 00, };
-char html_body[6] =
+const char html_body[6] =
/* "body\0" */
{0x62, 0x6f, 0x64, 0x79, 00, };
-char html_br[4] =
+const char html_br[4] =
/* "br\0" */
{0x62, 0x72, 00, };
-char html_center[8] =
+const char html_center[8] =
/* "center\0" */
{0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 00, };
-char html_form[6] =
+const char html_form[6] =
/* "form\0" */
{0x66, 0x6f, 0x72, 0x6d, 00, };
-char html_frame[7] =
+const char html_frame[7] =
/* "frame\0" */
{0x66, 0x72, 0x61, 0x6d, 0x65, 00, };
-char html_h1[4] =
+const char html_h1[4] =
/* "h1\0" */
{0x68, 0x31, 00, };
-char html_h2[4] =
+const char html_h2[4] =
/* "h2\0" */
{0x68, 0x32, 00, };
-char html_h3[4] =
+const char html_h3[4] =
/* "h3\0" */
{0x68, 0x33, 00, };
-char html_h4[4] =
+const char html_h4[4] =
/* "h4\0" */
{0x68, 0x34, 00, };
-char html_img[5] =
+const char html_img[5] =
/* "img\0" */
{0x69, 0x6d, 0x67, 00, };
-char html_input[7] =
+const char html_input[7] =
/* "input\0" */
{0x69, 0x6e, 0x70, 0x75, 0x74, 00, };
-char html_li[4] =
+const char html_li[4] =
/* "li\0" */
{0x6c, 0x69, 00, };
-char html_p[3] =
+const char html_p[3] =
/* "p\0" */
{0x70, 00, };
-char html_script[8] =
+const char html_script[8] =
/* "script\0" */
{0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 00, };
-char html_select[8] =
+const char html_select[8] =
/* "select\0" */
{0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 00, };
-char html_style[7] =
+const char html_style[7] =
/* "style\0" */
{0x73, 0x74, 0x79, 0x6c, 0x65, 00, };
-char html_tr[4] =
+const char html_tr[4] =
/* "tr\0" */
{0x74, 0x72, 00, };
-char html_href[6] =
+const char html_href[6] =
/* "href\0" */
{0x68, 0x72, 0x65, 0x66, 00, };
-char html_alt[5] =
+const char html_alt[5] =
/* "alt\0" */
{0x61, 0x6c, 0x74, 00, };
-char html_src[5] =
+const char html_src[5] =
/* "src\0" */
{0x73, 0x72, 0x63, 00, };
-char html_type[6] =
+const char html_type[6] =
/* "type\0" */
{0x74, 0x79, 0x70, 0x65, 00, };
-char html_submit[8] =
+const char html_submit[8] =
/* "submit\0" */
{0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 00, };
-char html_value[7] =
+const char html_value[7] =
/* "value\0" */
{0x76, 0x61, 0x6c, 0x75, 0x65, 00, };
-char html_action[8] =
+const char html_action[8] =
/* "action\0" */
{0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 00, };
-char html_name[6] =
+const char html_name[6] =
/* "name\0" */
{0x6e, 0x61, 0x6d, 0x65, 00, };
-char html_text[6] =
+const char html_text[6] =
/* "text\0" */
{0x74, 0x65, 0x78, 0x74, 00, };
-char html_size[6] =
+const char html_size[6] =
/* "size\0" */
{0x73, 0x69, 0x7a, 0x65, 00, };
-char html_image[7] =
+const char html_image[7] =
/* "image\0" */
{0x69, 0x6d, 0x61, 0x67, 0x65, 00, };
diff --git a/contiki/apps/html-strings.h b/contiki/apps/html-strings.h
index 7c926f2..21c6c12 100644
--- a/contiki/apps/html-strings.h
+++ b/contiki/apps/html-strings.h
@@ -1,36 +1,36 @@
-extern char html_slasha[4];
-extern char html_slashcenter[9];
-extern char html_slashform[7];
-extern char html_slashh[4];
-extern char html_slashscript[9];
-extern char html_slashselect[9];
-extern char html_slashstyle[8];
-extern char html_a[3];
-extern char html_body[6];
-extern char html_br[4];
-extern char html_center[8];
-extern char html_form[6];
-extern char html_frame[7];
-extern char html_h1[4];
-extern char html_h2[4];
-extern char html_h3[4];
-extern char html_h4[4];
-extern char html_img[5];
-extern char html_input[7];
-extern char html_li[4];
-extern char html_p[3];
-extern char html_script[8];
-extern char html_select[8];
-extern char html_style[7];
-extern char html_tr[4];
-extern char html_href[6];
-extern char html_alt[5];
-extern char html_src[5];
-extern char html_type[6];
-extern char html_submit[8];
-extern char html_value[7];
-extern char html_action[8];
-extern char html_name[6];
-extern char html_text[6];
-extern char html_size[6];
-extern char html_image[7];
+extern const char html_slasha[4];
+extern const char html_slashcenter[9];
+extern const char html_slashform[7];
+extern const char html_slashh[4];
+extern const char html_slashscript[9];
+extern const char html_slashselect[9];
+extern const char html_slashstyle[8];
+extern const char html_a[3];
+extern const char html_body[6];
+extern const char html_br[4];
+extern const char html_center[8];
+extern const char html_form[6];
+extern const char html_frame[7];
+extern const char html_h1[4];
+extern const char html_h2[4];
+extern const char html_h3[4];
+extern const char html_h4[4];
+extern const char html_img[5];
+extern const char html_input[7];
+extern const char html_li[4];
+extern const char html_p[3];
+extern const char html_script[8];
+extern const char html_select[8];
+extern const char html_style[7];
+extern const char html_tr[4];
+extern const char html_href[6];
+extern const char html_alt[5];
+extern const char html_src[5];
+extern const char html_type[6];
+extern const char html_submit[8];
+extern const char html_value[7];
+extern const char html_action[8];
+extern const char html_name[6];
+extern const char html_text[6];
+extern const char html_size[6];
+extern const char html_image[7];
diff --git a/contiki/apps/http-strings.c b/contiki/apps/http-strings.c
index 26cbdd5..e2bfd5a 100644
--- a/contiki/apps/http-strings.c
+++ b/contiki/apps/http-strings.c
@@ -1,36 +1,36 @@
-char http_http[8] =
+const char http_http[8] =
/* "http://" */
{0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, };
-char http_200[5] =
+const char http_200[5] =
/* "200 " */
{0x32, 0x30, 0x30, 0x20, };
-char http_301[5] =
+const char http_301[5] =
/* "301 " */
{0x33, 0x30, 0x31, 0x20, };
-char http_302[5] =
+const char http_302[5] =
/* "302 " */
{0x33, 0x30, 0x32, 0x20, };
-char http_get[5] =
+const char http_get[5] =
/* "GET " */
{0x47, 0x45, 0x54, 0x20, };
-char http_10[9] =
+const char http_10[9] =
/* "HTTP/1.0" */
{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, };
-char http_11[9] =
+const char http_11[9] =
/* "HTTP/1.1" */
{0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, };
-char http_content_type[15] =
+const char http_content_type[15] =
/* "content-type: " */
{0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, };
-char http_texthtml[10] =
+const char http_texthtml[10] =
/* "text/html" */
{0x74, 0x65, 0x78, 0x74, 0x2f, 0x68, 0x74, 0x6d, 0x6c, };
-char http_location[11] =
+const char http_location[11] =
/* "location: " */
{0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, };
-char http_host[7] =
+const char http_host[7] =
/* "host: " */
{0x68, 0x6f, 0x73, 0x74, 0x3a, 0x20, };
-char http_crnl[3] =
+const char http_crnl[3] =
/* "\r\n" */
{0xd, 0xa, };
diff --git a/contiki/apps/http-strings.h b/contiki/apps/http-strings.h
index 13a71c3..e3b6525 100644
--- a/contiki/apps/http-strings.h
+++ b/contiki/apps/http-strings.h
@@ -1,12 +1,12 @@
-extern char http_http[8];
-extern char http_200[5];
-extern char http_301[5];
-extern char http_302[5];
-extern char http_get[5];
-extern char http_10[9];
-extern char http_11[9];
-extern char http_content_type[15];
-extern char http_texthtml[10];
-extern char http_location[11];
-extern char http_host[7];
-extern char http_crnl[3];
+extern const char http_http[8];
+extern const char http_200[5];
+extern const char http_301[5];
+extern const char http_302[5];
+extern const char http_get[5];
+extern const char http_10[9];
+extern const char http_11[9];
+extern const char http_content_type[15];
+extern const char http_texthtml[10];
+extern const char http_location[11];
+extern const char http_host[7];
+extern const char http_crnl[3];
diff --git a/contiki/apps/http-user-agent-string.c b/contiki/apps/http-user-agent-string.c
index 1ae7f87..5be4414 100644
--- a/contiki/apps/http-user-agent-string.c
+++ b/contiki/apps/http-user-agent-string.c
@@ -1,3 +1,3 @@
-char http_user_agent_fields[84] =
+const char http_user_agent_fields[84] =
/* "Connection: close\r\nUser-Agent: Contiki/1.1 (; http://dunkels.com/adam/contiki/)\r\n\r\n" */
{0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0xd, 0xa, 0x55, 0x73, 0x65, 0x72, 0x2d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x3a, 0x20, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6b, 0x69, 0x2f, 0x31, 0x2e, 0x31, 0x20, 0x28, 0x3b, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x64, 0x75, 0x6e, 0x6b, 0x65, 0x6c, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x64, 0x61, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6b, 0x69, 0x2f, 0x29, 0xd, 0xa, 0xd, 0xa, };
diff --git a/contiki/apps/http-user-agent-string.h b/contiki/apps/http-user-agent-string.h
index dd40d80..c9597df 100644
--- a/contiki/apps/http-user-agent-string.h
+++ b/contiki/apps/http-user-agent-string.h
@@ -1 +1 @@
-extern char http_user_agent_fields[84];
+extern const char http_user_agent_fields[84];
diff --git a/contiki/apps/makestrings b/contiki/apps/makestrings
index 8c35b71..8d044fc 100755
--- a/contiki/apps/makestrings
+++ b/contiki/apps/makestrings
@@ -18,7 +18,7 @@
$datan =~ s/\\n/\n/g;
$datan =~ s/\\0/\0/g;
- printf(OUTPUTC "char $var\[%d] = \n", length($datan) + 1);
+ printf(OUTPUTC "const char $var\[%d] = \n", length($datan) + 1);
printf(OUTPUTC "/* \"$data\" */\n");
printf(OUTPUTC "{");
for($j = 0; $j < length($datan); $j++) {
@@ -26,7 +26,7 @@
}
printf(OUTPUTC "};\n");
- printf(OUTPUTH "extern char $var\[%d];\n", length($datan) + 1);
+ printf(OUTPUTH "extern const char $var\[%d];\n", length($datan) + 1);
}
}
diff --git a/contiki/apps/smtp-strings.c b/contiki/apps/smtp-strings.c
index fa50ab6..29f9c1e 100644
--- a/contiki/apps/smtp-strings.c
+++ b/contiki/apps/smtp-strings.c
@@ -1,27 +1,27 @@
-char smtp_220[4] =
+const char smtp_220[4] =
/* "220" */
{0x32, 0x32, 0x30, };
-char smtp_helo[6] =
+const char smtp_helo[6] =
/* "HELO " */
{0x48, 0x45, 0x4c, 0x4f, 0x20, };
-char smtp_mail_from[12] =
+const char smtp_mail_from[12] =
/* "MAIL FROM: " */
{0x4d, 0x41, 0x49, 0x4c, 0x20, 0x46, 0x52, 0x4f, 0x4d, 0x3a, 0x20, };
-char smtp_rcpt_to[10] =
+const char smtp_rcpt_to[10] =
/* "RCPT TO: " */
{0x52, 0x43, 0x50, 0x54, 0x20, 0x54, 0x4f, 0x3a, 0x20, };
-char smtp_data[5] =
+const char smtp_data[5] =
/* "DATA" */
{0x44, 0x41, 0x54, 0x41, };
-char smtp_to[5] =
+const char smtp_to[5] =
/* "To: " */
{0x54, 0x6f, 0x3a, 0x20, };
-char smtp_from[7] =
+const char smtp_from[7] =
/* "From: " */
{0x46, 0x72, 0x6f, 0x6d, 0x3a, 0x20, };
-char smtp_subject[10] =
+const char smtp_subject[10] =
/* "Subject: " */
{0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x3a, 0x20, };
-char smtp_quit[5] =
+const char smtp_quit[5] =
/* "QUIT" */
{0x51, 0x55, 0x49, 0x54, };
diff --git a/contiki/apps/smtp-strings.h b/contiki/apps/smtp-strings.h
index 15bed46..b05f4fe 100644
--- a/contiki/apps/smtp-strings.h
+++ b/contiki/apps/smtp-strings.h
@@ -1,9 +1,9 @@
-extern char smtp_220[4];
-extern char smtp_helo[6];
-extern char smtp_mail_from[12];
-extern char smtp_rcpt_to[10];
-extern char smtp_data[5];
-extern char smtp_to[5];
-extern char smtp_from[7];
-extern char smtp_subject[10];
-extern char smtp_quit[5];
+extern const char smtp_220[4];
+extern const char smtp_helo[6];
+extern const char smtp_mail_from[12];
+extern const char smtp_rcpt_to[10];
+extern const char smtp_data[5];
+extern const char smtp_to[5];
+extern const char smtp_from[7];
+extern const char smtp_subject[10];
+extern const char smtp_quit[5];