aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.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.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.c')
-rw-r--r--src/screen.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/screen.c b/src/screen.c
index 4624974c1..f9fa9b1fb 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -18,15 +18,8 @@
*
*/
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdarg.h>
-#include <string.h>
-#include <time.h>
-#include <locale.h>
-#include <glib.h>
-#include <ncurses.h>
-
+#include "screen.h"
+#include "screen_utils.h"
#include "config.h"
#include "ncmpc.h"
#include "support.h"
@@ -37,9 +30,13 @@
#include "colors.h"
#include "strfsong.h"
#include "wreadln.h"
-#include "screen.h"
-#include "screen_utils.h"
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdarg.h>
+#include <string.h>
+#include <time.h>
+#include <locale.h>
#define SCREEN_PLAYLIST_ID 0
#define SCREEN_BROWSE_ID 1