diff options
author | lukem <lukem@NetBSD.org> | 1997-10-10 16:38:40 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-10 16:38:40 +0000 |
commit | b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd (patch) | |
tree | 95ab3c6f8586978c37f68a5b0d84e0770ef835af /pom | |
parent | 50f99331097302f77db413ba7ad7299d928163eb (diff) | |
download | bsdgames-darwin-b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd.tar.gz bsdgames-darwin-b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd.tar.zst bsdgames-darwin-b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd.zip |
WARNSify
Diffstat (limited to 'pom')
-rw-r--r-- | pom/pom.6 | 6 | ||||
-rw-r--r-- | pom/pom.c | 28 |
2 files changed, 20 insertions, 14 deletions
@@ -1,4 +1,4 @@ -.\" $NetBSD: pom.6,v 1.4 1995/03/23 08:35:35 cgd Exp $ +.\" $NetBSD: pom.6,v 1.5 1997/10/10 16:46:56 lukem Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -40,10 +40,10 @@ .Nm pom .Nd display the phase of the moon .Sh SYNOPSIS -.Nm pom +.Nm .Sh DESCRIPTION The -.Nm pom +.Nm utility displays the current phase of the moon. Useful for selecting software completion target dates and predicting managerial behavior. @@ -1,4 +1,4 @@ -/* $NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $ */ +/* $NetBSD: pom.c,v 1.7 1997/10/10 16:47:05 lukem Exp $ */ /* * Copyright (c) 1989, 1993 @@ -35,17 +35,17 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint -static char copyright[] = -"@(#) Copyright (c) 1989, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; +__COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); #endif /* not lint */ #ifndef lint #if 0 static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $"; +__RCSID("$NetBSD: pom.c,v 1.7 1997/10/10 16:47:05 lukem Exp $"); #endif #endif /* not lint */ @@ -60,11 +60,11 @@ static char rcsid[] = "$NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $"; */ #include <sys/time.h> +#include <errno.h> +#include <math.h> #include <stdio.h> #include <string.h> #include <tzfile.h> -#include <math.h> -#include <errno.h> #define PI 3.141592654 #define EPOCH 85 @@ -75,13 +75,19 @@ static char rcsid[] = "$NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $"; #define Pzero 192.917585 /* lunar mean long of perigee at EPOCH */ #define Nzero 55.204723 /* lunar mean long of node at EPOCH */ -double dtor(), potm(), adj360(); +void adj360 __P((double *)); +double dtor __P((double)); +int main __P((int, char *[])); +double potm __P((double)); -main() +int +main(argc, argv) + int argc; + char *argv[]; { struct timeval tp; struct timezone tzp; - struct tm *GMT, *gmtime(); + struct tm *GMT; time_t tmpt; double days, today, tomorrow; int cnt; @@ -173,7 +179,7 @@ dtor(deg) * adj360 -- * adjust value so 0 <= deg <= 360 */ -double +void adj360(deg) double *deg; { |