While I'm here: * Add license information * Sort variables a bit according to the PHB This was initially a small patch that was meant to update the MASTER_SITES and the WWW field. [1] On further research it came to light that the previous version of astro/wmsun was a fork whose upstream sources are now gone. In the meantime there have been some recent activities regarding Window Maker dockapps and many of those programs were collected, updated and are maintained by the current Window Maker developers. Therefore the intial patch has been extended a bit to point to the new upstream location instead of using a semi-official location that could vanish in near future. [2] At last but not least: The program was renamed from "wmSun" to "wmsun" so there's a bit more churn than usual. https://github.com/window-maker/dockapps/blob/master/wmsun/ChangeLog PR: 235526 Submitted by: Marco Beishuzen (maintainer) [1] Approved by: tcberner (mentor), maintainer [2] Differential Revision: https://reviews.freebsd.org/D19136
21 lines
678 B
C
21 lines
678 B
C
--- wmsun.c.orig 2015-08-28 11:57:39 UTC
|
|
+++ wmsun.c
|
|
@@ -43,7 +43,6 @@
|
|
/*
|
|
* Includes
|
|
*/
|
|
-#define _POSIX_C_SOURCE 1
|
|
#include <X11/X.h> /* for ButtonPress, ButtonRelease, etc */
|
|
#include <X11/Xlib.h> /* for XEvent, ConnectionNumber, etc */
|
|
#include <math.h> /* for cos, sin */
|
|
@@ -106,7 +105,8 @@ int main(int argc, char *argv[]) {
|
|
int n;
|
|
int Year, Month;
|
|
int DayOfMonth;
|
|
- long CurrentLocalTime, CurrentGMTTime, date;
|
|
+ time_t CurrentLocalTime, CurrentGMTTime;
|
|
+ long date;
|
|
double UT, val, LTRise, LTSet, LocalHour, hour24();
|
|
int H, M;
|
|
struct timeval timeout;
|