diff options
author | Max Kellermann <max@duempel.org> | 2008-11-01 14:55:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-01 14:55:23 +0100 |
commit | 4c1b96c30721f78d9251a8074d4d516c37e755b9 (patch) | |
tree | c1473bea5ff2fb12560c22a2764189adba96b83b /src/decoder/mp3_plugin.c | |
parent | 0b614fbaae9089d6d1ce981735a51f2a5b3cbf65 (diff) | |
download | mpd-4c1b96c30721f78d9251a8074d4d516c37e755b9.tar.gz mpd-4c1b96c30721f78d9251a8074d4d516c37e755b9.tar.xz mpd-4c1b96c30721f78d9251a8074d4d516c37e755b9.zip |
decoder: make the suffixes and mime_types arrays really const
The strings were constant, but the pointers weren't. C syntax is
somewhat tricky..
Diffstat (limited to 'src/decoder/mp3_plugin.c')
-rw-r--r-- | src/decoder/mp3_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/mp3_plugin.c b/src/decoder/mp3_plugin.c index 1dc47b457..528911f3d 100644 --- a/src/decoder/mp3_plugin.c +++ b/src/decoder/mp3_plugin.c @@ -1143,8 +1143,8 @@ static struct tag *mp3_tag_dup(const char *file) return ret; } -static const char *mp3_suffixes[] = { "mp3", "mp2", NULL }; -static const char *mp3_mime_types[] = { "audio/mpeg", NULL }; +static const char *const mp3_suffixes[] = { "mp3", "mp2", NULL }; +static const char *const mp3_mime_types[] = { "audio/mpeg", NULL }; const struct decoder_plugin mp3Plugin = { .name = "mp3", |