[Pkg-wmaker-commits] [wmsun] 40/73: wmsun: Update includes using include-what-you-use.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Aug 28 12:04:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmsun.

commit 1d0cdde47f69262a7a8cf50e87440b607c55093a
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sun Jun 14 17:04:55 2015 -0500

    wmsun: Update includes using include-what-you-use.
---
 SunRise.c |  3 +--
 wmsun.c   | 23 ++++++++++++-----------
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/SunRise.c b/SunRise.c
index 5af0842..289cfb1 100644
--- a/SunRise.c
+++ b/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.c b/wmsun.c
index 4401aaa..f8e55e3 100644
--- a/wmsun.c
+++ b/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 */
 
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmsun.git



More information about the Pkg-wmaker-commits mailing list