httpd: move some variables from rwdata- to rodata- or bss-section

This commit is contained in:
goldsimon 2011-03-27 13:07:48 +00:00
parent 1c84fa5e5d
commit b73187713f
2 changed files with 5 additions and 5 deletions

View File

@ -276,7 +276,7 @@ static char http_post_response_filename[LWIP_HTTPD_POST_MAX_RESPONSE_URI_LEN+1];
#define HTTPD_LAST_TAG_PART 0xFFFF #define HTTPD_LAST_TAG_PART 0xFFFF
const char *g_pcSSIExtensions[] = { const char * const g_pcSSIExtensions[] = {
".shtml", ".shtm", ".ssi", ".xml" ".shtml", ".shtm", ".ssi", ".xml"
}; };
@ -365,8 +365,8 @@ const char * const g_pcTagLeadOut = "-->";
#if LWIP_HTTPD_CGI #if LWIP_HTTPD_CGI
/* CGI handler information */ /* CGI handler information */
const tCGI *g_pCGIs = NULL; const tCGI *g_pCGIs;
int g_iNumCGIs = 0; int g_iNumCGIs;
#endif /* LWIP_HTTPD_CGI */ #endif /* LWIP_HTTPD_CGI */
#if LWIP_HTTPD_STRNSTR_PRIVATE #if LWIP_HTTPD_STRNSTR_PRIVATE

View File

@ -28,7 +28,7 @@ typedef struct
} tHTTPHeader; } tHTTPHeader;
/** A list of strings used in HTTP headers */ /** A list of strings used in HTTP headers */
static const char *g_psHTTPHeaderStrings[] = static const char * const g_psHTTPHeaderStrings[] =
{ {
"Content-type: text/html\r\n\r\n", "Content-type: text/html\r\n\r\n",
"Content-type: text/html\r\nExpires: Fri, 10 Apr 2008 14:00:00 GMT\r\nPragma: no-cache\r\n\r\n", "Content-type: text/html\r\nExpires: Fri, 10 Apr 2008 14:00:00 GMT\r\nPragma: no-cache\r\n\r\n",
@ -87,7 +87,7 @@ static const char *g_psHTTPHeaderStrings[] =
#define DEFAULT_404_HTML 25 /* default 404 body */ #define DEFAULT_404_HTML 25 /* default 404 body */
/** A list of extension-to-HTTP header strings */ /** A list of extension-to-HTTP header strings */
static tHTTPHeader g_psHTTPHeaders[] = const static tHTTPHeader g_psHTTPHeaders[] =
{ {
{ "html", HTTP_HDR_HTML}, { "html", HTTP_HDR_HTML},
{ "htm", HTTP_HDR_HTML}, { "htm", HTTP_HDR_HTML},