summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2009-12-15 03:34:34 +0000
committerokan <okan>2009-12-15 03:34:34 +0000
commitb27c3c22b508889678986f74b2ca3082a4b577ad (patch)
treeab26d1142bf442a294a5813be54909b257f570f3
parent2ad2b5f31d01d8c0c3a45c542fc525ae79b4ae29 (diff)
downloadcwm-b27c3c22b508889678986f74b2ca3082a4b577ad.tar.gz
cwm-b27c3c22b508889678986f74b2ca3082a4b577ad.tar.xz
cwm-b27c3c22b508889678986f74b2ca3082a4b577ad.zip
pull these headers only into files that need them.
ok oga@
-rw-r--r--calmwm.c3
-rw-r--r--calmwm.h4
-rw-r--r--client.c2
-rw-r--r--group.c2
-rw-r--r--kbfunc.c1
-rw-r--r--search.c1
6 files changed, 9 insertions, 4 deletions
diff --git a/calmwm.c b/calmwm.c
index 88ece10..d08ed86 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -18,6 +18,9 @@
  * $Id$
  */
 
+#include <getopt.h>
+#include <signal.h>
+
 #include "calmwm.h"
 
 Display				*X_Dpy;
diff --git a/calmwm.h b/calmwm.h
index 16a834d..44cbbf7 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -26,13 +26,9 @@
 #include <sys/stat.h>
 #include <sys/wait.h>
 
-#include <assert.h>
 #include <ctype.h>
 #include <err.h>
 #include <errno.h>
-#include <dirent.h>
-#include <getopt.h>
-#include <signal.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
diff --git a/client.c b/client.c
index c4e6abf..f0e7010 100644
--- a/client.c
+++ b/client.c
@@ -18,6 +18,8 @@
  * $Id$
  */
 
+#include <assert.h>
+
 #include "calmwm.h"
 
 static struct client_ctx	*client_mrunext(struct client_ctx *);
diff --git a/group.c b/group.c
index 3dc730c..e05ff54 100644
--- a/group.c
+++ b/group.c
@@ -19,6 +19,8 @@
  * $Id$
  */
 
+#include <assert.h>
+
 #include "calmwm.h"
 
 static void		 group_add(struct group_ctx *, struct client_ctx *);
diff --git a/kbfunc.c b/kbfunc.c
index a1cb430..1e71265 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -18,6 +18,7 @@
  * $Id$
  */
 
+#include <dirent.h>
 #include <paths.h>
 
 #include "calmwm.h"
diff --git a/search.c b/search.c
index e136427..18a3695 100644
--- a/search.c
+++ b/search.c
@@ -17,6 +17,7 @@
  * $Id$
  */
 
+#include <assert.h>
 #include <fnmatch.h>
 
 #include "calmwm.h"