summaryrefslogtreecommitdiffstats
path: root/pom
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-08-12 08:21:41 +0000
committerdholland <dholland@NetBSD.org>2009-08-12 08:21:41 +0000
commit4fa17c6f9afc7c76d0350d5d9e5996391aa18137 (patch)
treedf25abab941a9c4156963af474b6ba2a96023025 /pom
parent8916e2056e90ba2c157dfd2b98fb48837d565646 (diff)
downloadbsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.tar.gz
bsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.tar.zst
bsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.zip
sprinkle static
Diffstat (limited to 'pom')
-rw-r--r--pom/pom.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/pom/pom.c b/pom/pom.c
index 85bba8cb..f4267d0c 100644
--- a/pom/pom.c
+++ b/pom/pom.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pom.c,v 1.18 2009/07/26 03:05:52 dholland Exp $ */
+/* $NetBSD: pom.c,v 1.19 2009/08/12 08:23:20 dholland Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\
#if 0
static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pom.c,v 1.18 2009/07/26 03:05:52 dholland Exp $");
+__RCSID("$NetBSD: pom.c,v 1.19 2009/08/12 08:23:20 dholland Exp $");
#endif
#endif /* not lint */
@@ -84,12 +84,12 @@ __RCSID("$NetBSD: pom.c,v 1.18 2009/07/26 03:05:52 dholland Exp $");
#define Pzero 36.340410 /* lunar mean long of perigee at EPOCH */
#define Nzero 318.510107 /* lunar mean long of node at EPOCH */
-void adj360(double *);
-double dtor(double);
int main(int, char *[]);
-double potm(double);
-time_t parsetime(char *);
-void badformat(void) __dead;
+static void adj360(double *);
+static double dtor(double);
+static double potm(double);
+static time_t parsetime(char *);
+static void badformat(void) __dead;
int
main(int argc, char *argv[])
@@ -148,7 +148,7 @@ main(int argc, char *argv[])
* potm --
* return phase of the moon
*/
-double
+static double
potm(double days)
{
double N, Msol, Ec, LambdaSol, l, Mm, Ev, Ac, A3, Mmprime;
@@ -184,7 +184,7 @@ potm(double days)
* dtor --
* convert degrees to radians
*/
-double
+static double
dtor(double deg)
{
return(deg * PI / 180);
@@ -194,7 +194,7 @@ dtor(double deg)
* adj360 --
* adjust value so 0 <= deg <= 360
*/
-void
+static void
adj360(double *deg)
{
for (;;)
@@ -207,7 +207,7 @@ adj360(double *deg)
}
#define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2;
-time_t
+static time_t
parsetime(char *p)
{
struct tm *lt;
@@ -268,7 +268,7 @@ parsetime(char *p)
return (tval);
}
-void
+static void
badformat(void)
{
warnx("illegal time format");