summaryrefslogtreecommitdiffstats
path: root/warp/score.c
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2020-11-10 08:49:08 +0000
committerkamil <kamil@NetBSD.org>2020-11-10 08:49:08 +0000
commit679426dc52b7c5ef9223f9ec7065855f81102c78 (patch)
tree830c7f343b515a38c4e7237814dfb43cc31a2882 /warp/score.c
parentcd6a6786a83c6ffc71841f4c49e6192f2296b2a1 (diff)
downloadbsdgames-darwin-679426dc52b7c5ef9223f9ec7065855f81102c78.tar.gz
bsdgames-darwin-679426dc52b7c5ef9223f9ec7065855f81102c78.tar.zst
bsdgames-darwin-679426dc52b7c5ef9223f9ec7065855f81102c78.zip
Integrate Warp Kit into the NetBSD build
Fix the build and make it install and run with minimal required changes.
Diffstat (limited to 'warp/score.c')
-rw-r--r--warp/score.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/warp/score.c b/warp/score.c
index 8695f4f9..f36e6595 100644
--- a/warp/score.c
+++ b/warp/score.c
@@ -35,6 +35,7 @@ score_init()
Reg2 int i;
FILE *savfil;
+#if 0
if (stat(SAVEDIR,&filestat)) {
printf("Cannot access %s\r\n",SAVEDIR);
finalize(1);
@@ -47,6 +48,7 @@ score_init()
printf("%s is not protected correctly (must be u+rw o+rx).\r\n",SAVEDIR);
finalize(1);
}
+#endif
#ifdef SCOREFULL
interp(longlognam, sizeof longlognam, "%N");
@@ -535,12 +537,12 @@ score()
Reg1 FILE *logfd;
Reg2 FILE *outfd;
Reg3 int i;
- long nowtime, time();
+ time_t nowtime;
char *scoreboard;
for (i=0; link(LOGFILE, LOCKFILE) == -1 && i<10; i++)
sleep(1);
- nowtime = time((long *)0);
+ nowtime = time(NULL);
strcpy(cdate,ctime(&nowtime));
if ((logfd = fopen(LOGFILE,"a")) != NULL) {
fprintf(logfd,