mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
Constify content_type_name & content_status_name
svn path=/trunk/netsurf/; revision=4815
This commit is contained in:
parent
307ab6675f
commit
611b558d0e
@ -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",
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user