From da35b5fa1af764342af0c4c8efd8ea9a33f41920 Mon Sep 17 00:00:00 2001 From: thorpej Date: Sat, 25 Oct 1997 01:40:47 +0000 Subject: Fix time_t vs. long botch. --- larn/data.c | 6 +++--- larn/header.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'larn') diff --git a/larn/data.c b/larn/data.c index 6a2eff8d..571cf453 100644 --- a/larn/data.c +++ b/larn/data.c @@ -1,4 +1,4 @@ -/* $NetBSD: data.c,v 1.8 1997/10/18 20:03:10 christos Exp $ */ +/* $NetBSD: data.c,v 1.9 1997/10/25 01:40:47 thorpej Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)data.c 5.3 (Berkeley) 5/13/91"; #else -__RCSID("$NetBSD: data.c,v 1.8 1997/10/18 20:03:10 christos Exp $"); +__RCSID("$NetBSD: data.c,v 1.9 1997/10/25 01:40:47 thorpej Exp $"); #endif #endif /* not lint */ @@ -168,7 +168,7 @@ short lasthx = 0, lasthy = 0; /* location of monster last hit by * player */ short nobeep = 0; /* true if program is not to beep */ unsigned long randx = 33601; /* the random number seed */ -long initialtime = 0;/* time playing began */ +time_t initialtime = 0;/* time playing began */ long gltime = 0; /* the clock for the game */ long outstanding_taxes = 0; /* present tax bill from score file */ long c[100], cbak[100]; /* the character description arrays */ diff --git a/larn/header.h b/larn/header.h index 0f033070..6812680c 100644 --- a/larn/header.h +++ b/larn/header.h @@ -1,4 +1,4 @@ -/* $NetBSD: header.h,v 1.11 1997/10/18 20:03:22 christos Exp $ */ +/* $NetBSD: header.h,v 1.12 1997/10/25 01:40:48 thorpej Exp $ */ /* header.h Larn is copyrighted 1986 by Noah Morgan. */ @@ -359,13 +359,13 @@ extern short nobeep, oldx, oldy, playerx, playery, level; extern int dayplay, enable_scroll, srcount, yrepcount, userid, wisid, lfd, fd; extern uid_t uid, euid; -extern long initialtime, outstanding_taxes, skill[], gltime, c[], cbak[]; +extern long outstanding_taxes, skill[], gltime, c[], cbak[]; +extern time_t initialtime; extern unsigned long randx; extern struct cel *cell; extern struct monst monster[]; extern struct sphere *spheres; extern struct _itm itm[]; -extern long initialtime; extern int rmst, maxitm, lasttime; /* macro to create scroll #'s with probability of occurrence */ -- cgit v1.2.3-56-ge451