aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/wavpack_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-01 14:55:23 +0100
committerMax Kellermann <max@duempel.org>2008-11-01 14:55:23 +0100
commit4c1b96c30721f78d9251a8074d4d516c37e755b9 (patch)
treec1473bea5ff2fb12560c22a2764189adba96b83b /src/decoder/wavpack_plugin.c
parent0b614fbaae9089d6d1ce981735a51f2a5b3cbf65 (diff)
downloadmpd-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/wavpack_plugin.c')
-rw-r--r--src/decoder/wavpack_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/wavpack_plugin.c b/src/decoder/wavpack_plugin.c
index c0fb8898d..ef2ea6a99 100644
--- a/src/decoder/wavpack_plugin.c
+++ b/src/decoder/wavpack_plugin.c
@@ -559,8 +559,8 @@ wavpack_filedecode(struct decoder *decoder, const char *fname)
return true;
}
-static char const *wavpackSuffixes[] = { "wv", NULL };
-static char const *wavpackMimeTypes[] = { "audio/x-wavpack", NULL };
+static char const *const wavpackSuffixes[] = { "wv", NULL };
+static char const *const wavpackMimeTypes[] = { "audio/x-wavpack", NULL };
const struct decoder_plugin wavpackPlugin = {
.name = "wavpack",