summaryrefslogtreecommitdiff
path: root/games/pom/pom.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/pom/pom.c')
-rw-r--r--games/pom/pom.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/games/pom/pom.c b/games/pom/pom.c
index 185b71f2cbe..8cd921e045d 100644
--- a/games/pom/pom.c
+++ b/games/pom/pom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pom.c,v 1.10 2003/07/10 00:03:01 david Exp $ */
+/* $OpenBSD: pom.c,v 1.11 2004/07/10 07:26:23 deraadt Exp $ */
/* $NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $ */
/*
@@ -42,7 +42,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: pom.c,v 1.10 2003/07/10 00:03:01 david Exp $";
+static char rcsid[] = "$OpenBSD: pom.c,v 1.11 2004/07/10 07:26:23 deraadt Exp $";
#endif
#endif /* not lint */
@@ -88,9 +88,7 @@ time_t parsetime(char *);
void badformat(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
struct timeval tp;
struct timezone tzp;
@@ -152,8 +150,7 @@ main(argc, argv)
* return phase of the moon
*/
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;
@@ -189,8 +186,7 @@ potm(days)
* convert degrees to radians
*/
double
-dtor(deg)
- double deg;
+dtor(double deg)
{
return(deg * M_PI / 180);
}
@@ -200,8 +196,7 @@ dtor(deg)
* adjust value so 0 <= deg <= 360
*/
void
-adj360(deg)
- double *deg;
+adj360(double *deg)
{
for (;;)
if (*deg < 0.0)
@@ -214,8 +209,7 @@ adj360(deg)
#define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2;
time_t
-parsetime(p)
- char *p;
+parsetime(char *p)
{
struct tm *lt;
int bigyear;
@@ -276,7 +270,7 @@ parsetime(p)
}
void
-badformat()
+badformat(void)
{
warnx("illegal time format");
(void)fprintf(stderr, "usage: pom [[[[[cc]yy]mm]dd]HH]\n");