[6128] in SIPB bug reports
fix for moonphase on solaris
daemon@ATHENA.MIT.EDU (Mark Eichin)
Fri Sep 13 10:49:49 1996
To: bug-sipb@MIT.EDU
From: Mark Eichin <eichin@cygnus.com>
Date: 13 Sep 1996 10:49:12 -0400
it's amazing this worked anywhere -- the declarations were only in
scope in one function, not the one the functions were called in.
Moving them to top-level scope where they belong is sufficient to get
moonphase to run consistently (at least, it says "*** The moon is New ***"
for multiple iterations now.)
dcl+% /mit/gnu/bin/gdiff -ur /mit/sipbsrc/src/zmoon.c zmoon.c
--- /mit/sipbsrc/src/zmoon.c Fri Oct 22 02:23:17 1993
+++ zmoon.c Fri Sep 13 10:40:42 1996
@@ -45,6 +45,9 @@
****************************************************************************/
+double dtor();
+double adj360();
+double potm();
moontxt(buf, year, month, day, hour, minute, second)
char buf[];
@@ -57,9 +60,6 @@
{
char *cp=buf;
-double dtor();
-double adj360();
-double potm();
double days; /* days since EPOCH */
double phase; /* percent of lunar surface illuminated */