[PATCH 22/23] wmsun: Update includes using include-what-you-use.

Doug Torrance <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
---
 wmsun/SunRise.c |  3 +--
 wmsun/wmsun.c   | 23 ++++++++++++-----------
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/wmsun/SunRise.c b/wmsun/SunRise.c
index 5af0842..289cfb1 100644
--- a/wmsun/SunRise.c
+++ b/wmsun/SunRise.c
@@ -1,5 +1,4 @@
-#include <stdio.h>
-#include <math.h>
+#include <math.h>                      /* for sin, cos, fabs, sqrt, atan, etc */
 
 #define DegPerRad       57.29577951308232087680
 #define RadPerDeg        0.01745329251994329576
diff --git a/wmsun/wmsun.c b/wmsun/wmsun.c
index 4401aaa..f8e55e3 100644
--- a/wmsun/wmsun.c
+++ b/wmsun/wmsun.c
@@ -44,17 +44,18 @@
  *   Includes
  */
 #define _POSIX_C_SOURCE 1
-#include <stdio.h>
-#include <math.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <X11/X.h>
-#include <X11/xpm.h>
-#include "wmgeneral/wmgeneral.h"
-#include "wmSun_master.xpm"
-#include "wmSun_mask.xbm"
+#include <X11/X.h>                     /* for ButtonPress, ButtonRelease, etc */
+#include <X11/Xlib.h>                  /* for XEvent, ConnectionNumber, etc */
+#include <math.h>                      /* for cos, sin */
+#include <stdio.h>                     /* for printf, NULL */
+#include <stdlib.h>                    /* for atof, atoi, exit */
+#include <string.h>                    /* for strcmp */
+#include <sys/select.h>                /* for select, FD_SET, FD_ZERO, etc */
+#include <sys/time.h>                  /* for timeval */
+#include <time.h>                      /* for tm, gmtime_r, localtime_r, etc */
+#include "wmSun_mask.xbm"              /* for wmSun_mask_bits, etc */
+#include "wmSun_master.xpm"            /* for wmSun_master */
+#include "wmgeneral/wmgeneral.h"       /* for copyXPMArea, display, etc */
 
 
 
-- 
2.1.4


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.