diff options
author | joerg <joerg@FreeBSD.org> | 1996-07-17 20:13:33 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-07-17 20:13:33 +0000 |
commit | 12b08090e15851551255dccb996d2d6ccfb79ce6 (patch) | |
tree | e4c14eca299a82dbe6725cca4a196dc6ddbc1553 /games/pom | |
parent | 216a3608a8c1d116c65dac60448613c38549a051 (diff) | |
download | FreeBSD-src-12b08090e15851551255dccb996d2d6ccfb79ce6.zip FreeBSD-src-12b08090e15851551255dccb996d2d6ccfb79ce6.tar.gz |
Correctly declare main() as `int'.
Closes PR # bin/1385: /usr/games/pom, invalid de...
Submitted by: zach@freebsd.gaffaneys.com (Zach Heilig)
Diffstat (limited to 'games/pom')
-rw-r--r-- | games/pom/pom.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/games/pom/pom.c b/games/pom/pom.c index 1de213c..afc57cb 100644 --- a/games/pom/pom.c +++ b/games/pom/pom.c @@ -67,10 +67,12 @@ static const char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93"; #define Nzero 55.204723 /* lunar mean long of node at EPOCH */ #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) -double dtor(), potm(); -void adj360(); +static void adj360 __P((double *)); +static double dtor __P((double)); +static double potm __P((double)); -void main() +int +main() { time_t tt; struct tm *GMT; @@ -105,13 +107,15 @@ void main() today); } } + + return 0; } /* * potm -- * return phase of the moon */ -double +static double potm(days) double days; { @@ -148,7 +152,7 @@ potm(days) * dtor -- * convert degrees to radians */ -double +static double dtor(deg) double deg; { @@ -159,7 +163,7 @@ dtor(deg) * adj360 -- * adjust value so 0 <= deg <= 360 */ -void +static void adj360(deg) double *deg; { |