summaryrefslogtreecommitdiffstats
path: root/trek/main.c
diff options
context:
space:
mode:
authorcjs <cjs@NetBSD.org>1997-10-13 22:18:32 +0000
committercjs <cjs@NetBSD.org>1997-10-13 22:18:32 +0000
commit841b491f968c54e5a99d713163aa381d827a6516 (patch)
tree9c37703c925b04ee0888d223f05c63f67706bcc6 /trek/main.c
parent6cf5cd8ebd7b04c8b4261c09597b66bf1cddad46 (diff)
downloadbsdgames-darwin-841b491f968c54e5a99d713163aa381d827a6516.tar.gz
bsdgames-darwin-841b491f968c54e5a99d713163aa381d827a6516.tar.zst
bsdgames-darwin-841b491f968c54e5a99d713163aa381d827a6516.zip
time_t != long, again. *Sigh*.
Diffstat (limited to 'trek/main.c')
-rw-r--r--trek/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/trek/main.c b/trek/main.c
index 3d90d0f8..db9c85e0 100644
--- a/trek/main.c
+++ b/trek/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.5 1997/10/12 21:25:01 christos Exp $ */
+/* $NetBSD: main.c,v 1.6 1997/10/13 22:18:32 cjs Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.5 1997/10/12 21:25:01 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.6 1997/10/13 22:18:32 cjs Exp $");
#endif
#endif /* not lint */
@@ -53,6 +53,7 @@ __RCSID("$NetBSD: main.c,v 1.5 1997/10/12 21:25:01 christos Exp $");
#include <stdlib.h>
#include <unistd.h>
#include <err.h>
+#include <time.h>
#include "trek.h"
#include "getpar.h"
@@ -166,6 +167,7 @@ main(argc, argv)
int argc;
char **argv;
{
+ time_t curtime;
long vect;
char opencode;
int prio;
@@ -176,7 +178,8 @@ char **argv;
av = argv;
ac = argc;
av++;
- time(&vect);
+ time(&curtime);
+ vect = (long) curtime;
srand(vect);
opencode = 'w';
prio = PRIO;