Constify content_type_name & content_status_name

svn path=/trunk/netsurf/; revision=4815
This commit is contained in:
John Tytgat 2008-07-30 00:54:43 +00:00
parent 307ab6675f
commit 611b558d0e
2 changed files with 4 additions and 4 deletions

View File

@ -189,7 +189,7 @@ static const struct mime_entry mime_map[] = {
};
#define MIME_MAP_COUNT (sizeof(mime_map) / sizeof(mime_map[0]))
const char *content_type_name[] = {
const char * const content_type_name[] = {
"HTML",
"TEXTPLAIN",
"CSS",
@ -231,7 +231,7 @@ const char *content_type_name[] = {
"UNKNOWN"
};
const char *content_status_name[] = {
const char * const content_status_name[] = {
"TYPE_UNKNOWN",
"LOADING",
"READY",

View File

@ -266,8 +266,8 @@ struct content {
};
extern struct content *content_list;
extern const char *content_type_name[];
extern const char *content_status_name[];
extern const char * const content_type_name[];
extern const char * const content_status_name[];
content_type content_lookup(const char *mime_type);