summaryrefslogtreecommitdiffstats
path: root/movement/lib/sunriset
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2022-03-04 14:52:49 -0600
committerGitHub <noreply@github.com>2022-03-04 14:52:49 -0600
commitccdf08da876d2c66bbc54cc246443676c4f9bf2e (patch)
tree77473da9df40f9b1f7cec5f8bd03c1b52c26b8e7 /movement/lib/sunriset
parentea988208e10dbcf62eff65522ec9f92231d880e9 (diff)
downloadSensor-Watch-ccdf08da876d2c66bbc54cc246443676c4f9bf2e.tar.gz
Sensor-Watch-ccdf08da876d2c66bbc54cc246443676c4f9bf2e.tar.bz2
Sensor-Watch-ccdf08da876d2c66bbc54cc246443676c4f9bf2e.zip
Movement: Astronomy and Orrery watch faces (#55)
Diffstat (limited to 'movement/lib/sunriset')
-rw-r--r--movement/lib/sunriset/sunriset.c3
-rw-r--r--movement/lib/sunriset/sunriset.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/movement/lib/sunriset/sunriset.c b/movement/lib/sunriset/sunriset.c
index 9126c3bc..178f2ff5 100644
--- a/movement/lib/sunriset/sunriset.c
+++ b/movement/lib/sunriset/sunriset.c
@@ -17,6 +17,7 @@ Released to the public domain by Paul Schlyter, December 1992
#include <math.h>
#include "sunriset.h"
+static void sunpos( double d, double *lon, double *r );
/* A macro to compute the number of days elapsed since 2000 Jan 0.0 */
/* (which is equal to 1999 Dec 31, 0h UT) */
@@ -199,7 +200,7 @@ double __daylen__( int year, int month, int day, double lon, double lat,
/* This function computes the Sun's position at any instant */
-void sunpos( double d, double *lon, double *r )
+static void sunpos( double d, double *lon, double *r )
/******************************************************/
/* Computes the Sun's ecliptic longitude and distance */
/* at an instant given in d, number of days since */
diff --git a/movement/lib/sunriset/sunriset.h b/movement/lib/sunriset/sunriset.h
index f8b97e32..7b2b6c83 100644
--- a/movement/lib/sunriset/sunriset.h
+++ b/movement/lib/sunriset/sunriset.h
@@ -24,8 +24,6 @@ double __daylen__( int year, int month, int day, double lon, double lat,
int __sunriset__( int year, int month, int day, double lon, double lat,
double altit, int upper_limb, double *rise, double *set );
-void sunpos( double d, double *lon, double *r );
-
void sun_RA_dec( double d, double *RA, double *dec, double *r );
double revolution( double x );