summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-09 10:15:15 +0000
committerjb <jb@FreeBSD.org>1998-05-09 10:15:15 +0000
commit6206cfafdc63e76184b16e7f742b27edcc68c0c5 (patch)
tree9eeaaa2e710c45560bf7ec4c9da379288d009605 /games
parent2228191bb8eae7e6455cac39d7f39795db6b3435 (diff)
downloadFreeBSD-src-6206cfafdc63e76184b16e7f742b27edcc68c0c5.zip
FreeBSD-src-6206cfafdc63e76184b16e7f742b27edcc68c0c5.tar.gz
Change long variables to time_t if they are passed to time() or localtime()
be reference.
Diffstat (limited to 'games')
-rw-r--r--games/rogue/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/rogue/machdep.c b/games/rogue/machdep.c
index a6b1dfa..c7c89a6 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;
OpenPOWER on IntegriCloud