diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-05 23:22:18 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-05 23:22:18 +0000 |
commit | 427f60dd4777b8e472114218365901b898ba0cfe (patch) | |
tree | 7cb8e13eeced4a822446afca52b63cd173595e9e /games/adventure/wizard.c | |
parent | 438ba7eab0892cbd9a34d3d6d0f873414981a607 (diff) |
<time.h>
Diffstat (limited to 'games/adventure/wizard.c')
-rw-r--r-- | games/adventure/wizard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/games/adventure/wizard.c b/games/adventure/wizard.c index 4722391ebe8..aad20539674 100644 --- a/games/adventure/wizard.c +++ b/games/adventure/wizard.c @@ -50,13 +50,14 @@ static char rcsid[] = "$NetBSD: wizard.c,v 1.3 1995/04/24 12:21:41 cgd Exp $"; # include "hdr.h" #include <string.h> +#include <time.h> datime(d,t) int *d,*t; { int tvec[2],*tptr; time(tvec); - tptr=localtime(tvec); + tptr=(int *)localtime(tvec); *d=tptr[7]+365*(tptr[5]-77); /* day since 1977 (mod leap) */ /* bug: this will overflow in the year 2066 AD */ /* it will be attributed to Wm the C's millenial celebration */ |