decoder: make the suffixes and mime_types arrays really const

The strings were constant, but the pointers weren't.  C syntax is
somewhat tricky..
This commit is contained in:
Max Kellermann
2008-11-01 14:55:23 +01:00
parent 0b614fbaae
commit 4c1b96c307
11 changed files with 41 additions and 32 deletions

View File

@@ -263,7 +263,8 @@ static struct tag *modTagDup(const char *file)
return ret;
}
static const char *modSuffixes[] = { "amf",
static const char *const modSuffixes[] = {
"amf",
"dsm",
"far",
"gdm",