[Pkg-wmaker-commits] [wmsun] 28/73: wmsun: Remove trailing whitespace.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Fri Aug 28 12:04:45 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 9344976c5d263411a19f9a7ae0a733f9b9e11832
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Sun Jun 14 17:04:43 2015 -0500
wmsun: Remove trailing whitespace.
---
SunRise.c | 2 +-
wmSun.1 | 4 ++--
wmSun.c | 62 +++++++++++++++++++++++++++++++-------------------------------
3 files changed, 34 insertions(+), 34 deletions(-)
diff --git a/SunRise.c b/SunRise.c
index e66226a..a346160 100644
--- a/SunRise.c
+++ b/SunRise.c
@@ -124,7 +124,7 @@ double SinH(int year, int month, int day, double UT){
double TU, frac(), jd();
double RA_Sun, DEC_Sun, gmst, lmst, Tau;
double M, DL, L, SL, X, Y, Z, RHO;
-
+
TU = (jd(year, month, day, UT+62.0/3600.0) - 2451545.0)/36525.0;
diff --git a/wmSun.1 b/wmSun.1
index 4dad26a..1256f8a 100644
--- a/wmSun.1
+++ b/wmSun.1
@@ -1,4 +1,4 @@
-.TH WMSUN 1 "5 January 1999"
+.TH WMSUN 1 "5 January 1999"
.SH NAME
WMSUN \- Dockable WindowMaker SunRise/SunSet App
.SH SYNOPSIS
@@ -33,7 +33,7 @@ Set the date to show sunrise/sunset for.
.B wmSun -lon 106.3 -lat 35.9
this would display rise/set times at Los Alamos in local time.
.TP
-.B wmSun -lat 19.58 -lon 155.92 -td 10
+.B wmSun -lat 19.58 -lon 155.92 -td 10
this would display rise/set times in Kona, Hawaii in local time (in winter -- you need to
take into account daylight savings at other times of the year).
.SH BUGS
diff --git a/wmSun.c b/wmSun.c
index 882bfca..5e5c185 100644
--- a/wmSun.c
+++ b/wmSun.c
@@ -1,12 +1,12 @@
/*
*
* wmSun-1.03 (C) 1999 Mike Henderson (mghenderson at lanl.gov)
- *
+ *
* - Shows Sun Rise/Set Times....
- *
- *
- *
- *
+ *
+ *
+ *
+ *
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -20,11 +20,11 @@
*
* You should have received a copy of the GNU General Public License
* along with this program (see the file COPYING); if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA
*
* Things TODO:
- * - clean up code!
+ * - clean up code!
* - support for 8-bit displays.
* - more detailed documentation.
* - eclipses?
@@ -32,12 +32,12 @@
* Could be something like this;
* First click brings up buttons to change date.
* Second click brings up buttons to change lat/lon.
- * Third goes back to display
+ * Third goes back to display
* Set time delay to go back to display if user doesnt do it...
*
*
- *
- *
+ *
+ *
*
* Changes:
*
@@ -66,8 +66,8 @@
-/*
- * Includes
+/*
+ * Includes
*/
#include <stdio.h>
#include <math.h>
@@ -83,8 +83,8 @@
-/*
- * Delay between refreshes (in microseconds)
+/*
+ * Delay between refreshes (in microseconds)
*/
#define DELAY 10000L
#define WMSUN_VERSION "1.03"
@@ -103,7 +103,7 @@ void SunRise(int year, int month, int day, double LocalHour, double *UTRise,
int ToggleWindow = 0;
int nMAX = 1;
-int Flag = 1;
+int Flag = 1;
int UseUserTimeDiff = 0;
int UseUserDate = 0;
long UserDate;
@@ -115,8 +115,8 @@ int xDigit[11] = {8, 18, 27, 37, 46, 55, 64, 74, 83, 92, 102};
-/*
- * main
+/*
+ * main
*/
int main(int argc, char *argv[]) {
@@ -137,22 +137,22 @@ int main(int argc, char *argv[]) {
-
+
/*
* Parse any command line arguments.
*/
Glat = Glon = 0.0;
ParseCMDLine(argc, argv);
Glat *= RadPerDeg; SinGlat = sin( Glat ); CosGlat = cos( Glat );
-
-
+
+
openXwindow(argc, argv, wmSun_master, (char *)wmSun_mask_bits, wmSun_mask_width, wmSun_mask_height);
-
+
/*
* Loop until we die
*/
@@ -181,7 +181,7 @@ int main(int argc, char *argv[]) {
nMAX = 1000;
- CurrentGMTTime = time(CurrentTime); GMTTime = gmtime(&CurrentGMTTime);
+ CurrentGMTTime = time(CurrentTime); GMTTime = gmtime(&CurrentGMTTime);
DayOfMonth = GMTTime->tm_mday;
UT = GMTTime->tm_hour + GMTTime->tm_min/60.0 + GMTTime->tm_sec/3600.0;
@@ -235,7 +235,7 @@ int main(int argc, char *argv[]) {
copyXPMArea(10, 84, 28, 7, 19, 15);
}
-
+
if (LTSet > 0.0){
val = LTSet;
H = (int)val; val = (val-H)*60.0;
@@ -257,7 +257,7 @@ int main(int argc, char *argv[]) {
} else {
/*
- * Update the counter.
+ * Update the counter.
*/
++n;
@@ -270,7 +270,7 @@ int main(int argc, char *argv[]) {
- /*
+ /*
* Process any pending X events.
*/
while(XPending(display)){
@@ -291,9 +291,9 @@ int main(int argc, char *argv[]) {
-
- /*
- * Redraw and wait for next update
+
+ /*
+ * Redraw and wait for next update
*/
RedrawWindow();
usleep(DELAY);
@@ -312,13 +312,13 @@ int main(int argc, char *argv[]) {
-/*
- * ParseCMDLine()
+/*
+ * ParseCMDLine()
*/
void ParseCMDLine(int argc, char *argv[]) {
int i;
-
+
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-display")){
--
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