aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-01 14:51:41 +0100
committerMax Kellermann <max@duempel.org>2008-11-01 14:51:41 +0100
commit5036368f540af93372b750fe80e1c191b409a7a9 (patch)
tree38fcbd9a827f1271995e86307db4e80e2c201945 /src/ls.c
parent83f6222ae74e6601383cf934a1bbf176656bf5c5 (diff)
downloadmpd-5036368f540af93372b750fe80e1c191b409a7a9.tar.gz
mpd-5036368f540af93372b750fe80e1c191b409a7a9.tar.xz
mpd-5036368f540af93372b750fe80e1c191b409a7a9.zip
decoder: return const decoder_plugin structs
The decoder_plugin structs must never change. Don't work with non-const pointers.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index 2f652658c..7a2eb11f7 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -113,9 +113,10 @@ const char *getSuffix(const char *utf8file)
return ret;
}
-struct decoder_plugin *hasMusicSuffix(const char *utf8file, unsigned int next)
+const struct decoder_plugin *
+hasMusicSuffix(const char *utf8file, unsigned int next)
{
- struct decoder_plugin *ret = NULL;
+ const struct decoder_plugin *ret = NULL;
const char *s = getSuffix(utf8file);
if (s) {