summaryrefslogtreecommitdiffstats
path: root/games/pom
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-05-01 19:34:22 +0000
committerstefanf <stefanf@FreeBSD.org>2005-05-01 19:34:22 +0000
commit36030d1508279348f37468c918e7960fb85711b4 (patch)
tree8899ab6ed19d03fc7bd8fd3f6e3fa56e26fd193d /games/pom
parentdbffde0e4e1c2c62fd986f6e2b05dfa16e086c36 (diff)
downloadFreeBSD-src-36030d1508279348f37468c918e7960fb85711b4.zip
FreeBSD-src-36030d1508279348f37468c918e7960fb85711b4.tar.gz
Make caesar and pom WARNS 6 clean. While there, use prototypes everywhere.
PR: 62456
Diffstat (limited to 'games/pom')
-rw-r--r--games/pom/Makefile2
-rw-r--r--games/pom/pom.c11
2 files changed, 5 insertions, 8 deletions
diff --git a/games/pom/Makefile b/games/pom/Makefile
index 0831496..332f3cf 100644
--- a/games/pom/Makefile
+++ b/games/pom/Makefile
@@ -6,6 +6,6 @@ MAN= pom.6
DPADD= ${LIBM}
LDADD= -lm
-WARNS?= 2
+WARNS?= 6
.include <bsd.prog.mk>
diff --git a/games/pom/pom.c b/games/pom/pom.c
index ea8a608..d245f34 100644
--- a/games/pom/pom.c
+++ b/games/pom/pom.c
@@ -78,7 +78,7 @@ static double dtor(double);
static double potm(double);
int
-main()
+main(void)
{
time_t tt;
struct tm *GMT;
@@ -122,8 +122,7 @@ main()
* return phase of the moon
*/
static double
-potm(days)
- double days;
+potm(double days)
{
double N, Msol, Ec, LambdaSol, l, Mm, Ev, Ac, A3, Mmprime;
double A4, lprime, V, ldprime, D, Nm;
@@ -159,8 +158,7 @@ potm(days)
* convert degrees to radians
*/
static double
-dtor(deg)
- double deg;
+dtor(double deg)
{
return(deg * PI / 180);
}
@@ -170,8 +168,7 @@ dtor(deg)
* adjust value so 0 <= deg <= 360
*/
static void
-adj360(deg)
- double *deg;
+adj360(double *deg)
{
for (;;)
if (*deg < 0)
OpenPOWER on IntegriCloud