summaryrefslogtreecommitdiffstats
path: root/battlestar
diff options
context:
space:
mode:
authorcjs <cjs@NetBSD.org>1997-10-13 21:05:36 +0000
committercjs <cjs@NetBSD.org>1997-10-13 21:05:36 +0000
commit2adfb7003d0bf5dde4322c4e2bbbbddb779dc36f (patch)
treedd732b81947f0f66851e24fc90da2191a0a42d52 /battlestar
parentbd10b531314ec546d25fd238f27d94c74a726567 (diff)
downloadbsdgames-darwin-2adfb7003d0bf5dde4322c4e2bbbbddb779dc36f.tar.gz
bsdgames-darwin-2adfb7003d0bf5dde4322c4e2bbbbddb779dc36f.tar.zst
bsdgames-darwin-2adfb7003d0bf5dde4322c4e2bbbbddb779dc36f.zip
time_t != long; fix minor type problem.
Diffstat (limited to 'battlestar')
-rw-r--r--battlestar/com6.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/battlestar/com6.c b/battlestar/com6.c
index 86abed1f..adb34a62 100644
--- a/battlestar/com6.c
+++ b/battlestar/com6.c
@@ -1,4 +1,4 @@
-/* $NetBSD: com6.c,v 1.8 1997/10/11 02:07:08 lukem Exp $ */
+/* $NetBSD: com6.c,v 1.9 1997/10/13 21:05:36 cjs Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)com6.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: com6.c,v 1.8 1997/10/11 02:07:08 lukem Exp $");
+__RCSID("$NetBSD: com6.c,v 1.9 1997/10/13 21:05:36 cjs Exp $");
#endif
#endif /* not lint */
@@ -111,6 +111,7 @@ post(ch)
{
FILE *fp;
struct timeval tv;
+ time_t tvsec;
char *date;
sigset_t sigset, osigset;
@@ -118,7 +119,8 @@ post(ch)
sigaddset(&sigset, SIGINT);
sigprocmask(SIG_BLOCK, &sigset, &osigset);
gettimeofday(&tv, (struct timezone *) 0); /* can't call time */
- date = ctime(&tv.tv_sec);
+ tvsec = (time_t) tv.tv_sec;
+ date = ctime(&tvsec);
date[24] = '\0';
if ((fp = fopen(_PATH_SCORE, "a")) != NULL) {
fprintf(fp, "%s %8s %c%20s", date, uname, ch, rate());