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/song.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/song.c') diff --git a/src/song.c b/src/song.c index 4ab0afadf..eafd1fb4a 100644 --- a/src/song.c +++ b/src/song.c @@ -96,7 +96,7 @@ song_file_update(struct song *song) { char buffer[MPD_PATH_MAX]; const char *path_fs; - struct decoder_plugin *plugin; + const struct decoder_plugin *plugin; unsigned int next = 0; struct stat st; -- cgit v1.2.3