[Pkg-wmaker-commits] [wmmoonclock] 13/15: wmmoonclock: Use correct includes for each file.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 14 23:32:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch upstream
in repository wmmoonclock.
commit ad042949856e67916e3b9fd41e1b0075f440eb8e
Author: Doug Torrance <dtorrance at piedmont.edu>
Date: Mon Aug 14 18:49:28 2017 -0400
wmmoonclock: Use correct includes for each file.
---
src/CalcEphem.c | 4 ++--
src/CalcEphem.h | 3 ---
src/MoonRise.c | 1 -
src/wmMoonClock.c | 5 +++--
src/xutils.c | 5 ++---
src/xutils.h | 4 +++-
6 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/src/CalcEphem.c b/src/CalcEphem.c
index 1a8ab03..281f4a0 100644
--- a/src/CalcEphem.c
+++ b/src/CalcEphem.c
@@ -1,6 +1,6 @@
-#include <string.h>
#include "CalcEphem.h"
-
+#include <math.h>
+#include <string.h>
void CalcEphem(date, UT, c)
long int date; /* integer containing the date (e.g. 960829) */
diff --git a/src/CalcEphem.h b/src/CalcEphem.h
index 7ed5bde..e2908ed 100644
--- a/src/CalcEphem.h
+++ b/src/CalcEphem.h
@@ -1,6 +1,3 @@
-#include <stdio.h>
-#include <math.h>
-
#define DegPerRad 57.29577951308232087680
#define RadPerDeg 0.01745329251994329576
#define FALSE 0
diff --git a/src/MoonRise.c b/src/MoonRise.c
index 9fcb541..e8ff484 100644
--- a/src/MoonRise.c
+++ b/src/MoonRise.c
@@ -1,4 +1,3 @@
-#include <stdio.h>
#include <math.h>
#include "MoonRise.h"
#include "Moon.h"
diff --git a/src/wmMoonClock.c b/src/wmMoonClock.c
index d7bae22..21435d4 100644
--- a/src/wmMoonClock.c
+++ b/src/wmMoonClock.c
@@ -104,13 +104,14 @@
/*
* Includes
*/
+#include <math.h>
#include <stdio.h>
-#include <unistd.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/select.h>
#include <time.h>
#include <X11/X.h>
-#include <X11/xpm.h>
+#include <X11/Xlib.h>
#include "CalcEphem.h"
#include "MoonRise.h"
#include "xutils.h"
diff --git a/src/xutils.c b/src/xutils.c
index 25d2e1f..347b46b 100644
--- a/src/xutils.c
+++ b/src/xutils.c
@@ -31,12 +31,11 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <unistd.h>
-#include <ctype.h>
-#include <stdarg.h>
#include <X11/Xlib.h>
+#include <X11/Xutil.h>
#include <X11/xpm.h>
#include <X11/extensions/shape.h>
+#include <X11/extensions/shapeconst.h>
#include "xutils.h"
diff --git a/src/xutils.h b/src/xutils.h
index 586942b..f9fc538 100644
--- a/src/xutils.h
+++ b/src/xutils.h
@@ -1,7 +1,9 @@
#ifndef WMGENERAL_H_INCLUDED
#define WMGENERAL_H_INCLUDED
-
+#include <X11/X.h>
+#include <X11/Xlib.h>
+#include <X11/xpm.h>
/*
* Typedefs
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmmoonclock.git
More information about the Pkg-wmaker-commits
mailing list