From 77d3643036573ad55cdfc45ed197996d7a5c28d2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Jan 2009 17:26:12 +0100 Subject: ls: include cleanup Don't include headers which are not used. Fix some includes in decoder_thread.c. --- src/decoder_thread.c | 3 +++ src/ls.c | 10 ++++------ src/ls.h | 3 --- 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/decoder_thread.c b/src/decoder_thread.c index 3baa228e3..e6e521764 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -20,6 +20,7 @@ #include "decoder_thread.h" #include "decoder_control.h" #include "decoder_internal.h" +#include "decoder_list.h" #include "player_control.h" #include "pipe.h" #include "song.h" @@ -30,6 +31,8 @@ #include +#include + static bool decoder_stream_decode(const struct decoder_plugin *plugin, struct decoder *decoder, diff --git a/src/ls.c b/src/ls.c index 1d5c56661..85f0d266c 100644 --- a/src/ls.c +++ b/src/ls.c @@ -17,12 +17,10 @@ */ #include "ls.h" -#include "playlist.h" -#include "path.h" #include "client.h" -#include "log.h" -#include "stored_playlist.h" #include "config.h" +#include "decoder_list.h" +#include "archive_list.h" #include @@ -78,8 +76,8 @@ hasMusicSuffix(const char *utf8file, unsigned int next) if (s) { ret = decoder_plugin_from_suffix(s, next); } else { - DEBUG("hasMusicSuffix: The file: %s has no valid suffix\n", - utf8file); + g_debug("hasMusicSuffix: The file: %s has no valid suffix\n", + utf8file); } return ret; diff --git a/src/ls.h b/src/ls.h index 713b6ac20..711e33d6e 100644 --- a/src/ls.h +++ b/src/ls.h @@ -19,9 +19,6 @@ #ifndef MPD_LS_H #define MPD_LS_H -#include "decoder_list.h" -#include "archive_list.h" - #include struct stat; -- cgit v1.2.3