From 37fb4a6158bd354893d52f4dad3f5de384ed7e6a Mon Sep 17 00:00:00 2001 From: John Birrell Date: Sat, 9 May 1998 10:15:15 +0000 Subject: [PATCH] Change long variables to time_t if they are passed to time() or localtime() be reference. --- games/rogue/machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/games/rogue/machdep.c b/games/rogue/machdep.c index a6b1dfa6cc00..c7c89a6e4481 100644 --- a/games/rogue/machdep.c +++ b/games/rogue/machdep.c @@ -300,7 +300,7 @@ md_gct(rt_buf) struct rogue_time *rt_buf; { struct tm *t, *localtime(); - long seconds; + time_t seconds; time(&seconds); t = localtime(&seconds); @@ -334,11 +334,11 @@ char *fname; struct rogue_time *rt_buf; { struct stat sbuf; - long seconds; + time_t seconds; struct tm *t; stat(fname, &sbuf); - seconds = (long) sbuf.st_mtime; + seconds = sbuf.st_mtime; t = localtime(&seconds); rt_buf->year = t->tm_year;