From 4d5bfe0d0a6060d66fe02c5b93cd7bf252682966 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sun, 14 Jun 2015 17:04:40 -0500 Subject: [PATCH] wmsun: Add return types to functions. --- wmsun/SunRise.c | 6 +++--- wmsun/wmSun.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wmsun/SunRise.c b/wmsun/SunRise.c index c9742d5..1e16320 100644 --- a/wmsun/SunRise.c +++ b/wmsun/SunRise.c @@ -10,7 +10,7 @@ double cosEPS = 0.91748; double sinEPS = 0.39778; double P2 = 6.283185307; -Interp(double ym, double y0, double yp, double *xe, double *ye, double *z1, double *z2, int *nz){ +int Interp(double ym, double y0, double yp, double *xe, double *ye, double *z1, double *z2, int *nz){ double a, b, c, d, dx; @@ -36,7 +36,7 @@ Interp(double ym, double y0, double yp, double *xe, double *ye, double *z1, doub } -SunRise(int year, int month, int day, double LocalHour, double *UTRise, double *UTSet){ +void SunRise(int year, int month, int day, double LocalHour, double *UTRise, double *UTSet){ double UT, ym, y0, yp, SinH0; double xe, ye, z1, z2, SinH(), hour24(); @@ -105,7 +105,7 @@ SunRise(int year, int month, int day, double LocalHour, double *UTRise, double * } -UTTohhmm(double UT, int *h, int *m){ +void UTTohhmm(double UT, int *h, int *m){ if (UT < 0.0) { diff --git a/wmsun/wmSun.c b/wmsun/wmSun.c index 7979181..6de1a0d 100644 --- a/wmsun/wmSun.c +++ b/wmsun/wmSun.c @@ -98,7 +98,7 @@ void ParseCMDLine(int argc, char *argv[]); void pressEvent(XButtonEvent *xev); -SunRise(int year, int month, int day, double LocalHour, double *UTRise, +void SunRise(int year, int month, int day, double LocalHour, double *UTRise, double *UTSet); int ToggleWindow = 0;