From 238c627724255cd72f371b7d95eb96d013a37d7f Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sun, 14 Jun 2015 17:04:55 -0500 Subject: [PATCH] wmsun: Update includes using include-what-you-use. --- 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 -#include +#include /* 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 -#include -#include -#include -#include -#include -#include -#include -#include "wmgeneral/wmgeneral.h" -#include "wmSun_master.xpm" -#include "wmSun_mask.xbm" +#include /* for ButtonPress, ButtonRelease, etc */ +#include /* for XEvent, ConnectionNumber, etc */ +#include /* for cos, sin */ +#include /* for printf, NULL */ +#include /* for atof, atoi, exit */ +#include /* for strcmp */ +#include /* for select, FD_SET, FD_ZERO, etc */ +#include /* for timeval */ +#include /* 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 */