From 5036368f540af93372b750fe80e1c191b409a7a9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Nov 2008 14:51:41 +0100 Subject: decoder: return const decoder_plugin structs The decoder_plugin structs must never change. Don't work with non-const pointers. --- src/ls.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ls.h') diff --git a/src/ls.h b/src/ls.h index da79bbbd2..ed0f0677f 100644 --- a/src/ls.h +++ b/src/ls.h @@ -32,7 +32,8 @@ int isValidRemoteUtf8Url(const char *utf8url); int isRemoteUrl(const char *url); -struct decoder_plugin *hasMusicSuffix(const char *utf8file, unsigned int next); +const struct decoder_plugin * +hasMusicSuffix(const char *utf8file, unsigned int next); int printRemoteUrlHandlers(struct client *client); -- cgit v1.2.3