aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_artist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 12:27:29 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 12:27:29 +0200
commit8fd244cc61c74522b93b59e75594902a01f936b5 (patch)
treebbf97cbda04f0ec9b0dd927ab941a541dc1f8fd7 /src/screen_artist.c
parent2546fc394347548583c7bdcc15c23c7b17df6ea4 (diff)
downloadmpd-8fd244cc61c74522b93b59e75594902a01f936b5.tar.gz
mpd-8fd244cc61c74522b93b59e75594902a01f936b5.tar.xz
mpd-8fd244cc61c74522b93b59e75594902a01f936b5.zip
include cleanup
A header should include all headers which he needs. Move local includes on top, and let foo.c include foo.h in the first line, to automatically test its dependencies.
Diffstat (limited to 'src/screen_artist.c')
-rw-r--r--src/screen_artist.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/screen_artist.c b/src/screen_artist.c
index b9acd3e96..fa42f1f77 100644
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
@@ -18,13 +18,8 @@
*
*/
-#include <ctype.h>
-#include <stdlib.h>
-#include <string.h>
-#include <glib.h>
-#include <ncurses.h>
-
#include "config.h"
+
#ifndef DISABLE_ARTIST_SCREEN
#include "ncmpc.h"
#include "options.h"
@@ -37,6 +32,12 @@
#include "screen_utils.h"
#include "screen_browse.h"
+#include <ctype.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib.h>
+#include <ncurses.h>
+
#define BUFSIZE 1024
typedef enum { LIST_ARTISTS, LIST_ALBUMS, LIST_SONGS } artist_mode_t;