aboutsummaryrefslogtreecommitdiffstats
path: root/solar.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 18:13:08 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 18:13:08 +0200
commit090009a8e107888fb9f1ab5a2997d65c8c121398 (patch)
treeebb909ccbc6f6d29af5469964953aac987b86960 /solar.c
parentwhitespace (diff)
downloadlibred-090009a8e107888fb9f1ab5a2997d65c8c121398.tar.gz
libred-090009a8e107888fb9f1ab5a2997d65c8c121398.tar.bz2
libred-090009a8e107888fb9f1ab5a2997d65c8c121398.tar.xz
Improve makefile + minor fixes and improvements1.0.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--solar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/solar.c b/solar.c
index 906386f..ed9cf93 100644
--- a/solar.c
+++ b/solar.c
@@ -19,6 +19,7 @@
# define CLOCK_REALTIME_COARSE CLOCK_REALTIME
#endif
+
/**
* Get current Julian Centuries time (100 Julian days since J2000)
*
@@ -26,7 +27,7 @@
* @return 0 on success, -1 on failure
* @throws Any error specified for clock_gettime(3) on error
*/
-static double
+static int
julian_centuries(double *nowp)
{
struct timespec now;