diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-07-26 06:27:40 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-07-26 06:27:40 +0000 |
commit | 356d70818358e57ad6165c4a2f5235e687abd9e2 (patch) | |
tree | 78a283fbb8e08b3d5bde66a65dfba2d6d313e2f2 /games | |
parent | ede5513ce48b7327e6f27137136bb63daff9d4fe (diff) |
Y2K fix; jsm28@cam.ac.uk
Diffstat (limited to 'games')
-rw-r--r-- | games/pom/pom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/games/pom/pom.c b/games/pom/pom.c index 02a0462a600..50201e4cf2c 100644 --- a/games/pom/pom.c +++ b/games/pom/pom.c @@ -1,3 +1,4 @@ +/* $OpenBSD: pom.c,v 1.5 1998/07/26 06:27:39 pjanzen Exp $ */ /* $NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $ */ /* @@ -99,7 +100,7 @@ main() days = (GMT->tm_yday + 1) + ((GMT->tm_hour + (GMT->tm_min / 60.0) + (GMT->tm_sec / 3600.0)) / 24.0); for (cnt = EPOCH; cnt < GMT->tm_year; ++cnt) - days += isleap(cnt) ? 366 : 365; + days += isleap(cnt + 1900) ? 366 : 365; today = potm(days) + .5; (void)printf("The Moon is "); if ((int)today == 100) |