Module Name: src Committed By: dholland Date: Wed Aug 12 08:23:20 UTC 2009
Modified Files: src/games/pom: pom.c Log Message: sprinkle static To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/games/pom/pom.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/pom/pom.c diff -u src/games/pom/pom.c:1.18 src/games/pom/pom.c:1.19 --- src/games/pom/pom.c:1.18 Sun Jul 26 03:05:52 2009 +++ src/games/pom/pom.c Wed Aug 12 08:23:20 2009 @@ -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 @@ #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 @@ #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 @@ * 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 @@ * dtor -- * convert degrees to radians */ -double +static double dtor(double deg) { return(deg * PI / 180); @@ -194,7 +194,7 @@ * adj360 -- * adjust value so 0 <= deg <= 360 */ -void +static void adj360(double *deg) { for (;;) @@ -207,7 +207,7 @@ } #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 @@ return (tval); } -void +static void badformat(void) { warnx("illegal time format");