From 679426dc52b7c5ef9223f9ec7065855f81102c78 Mon Sep 17 00:00:00 2001 From: kamil Date: Tue, 10 Nov 2020 08:49:08 +0000 Subject: Integrate Warp Kit into the NetBSD build Fix the build and make it install and run with minimal required changes. --- warp/score.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'warp/score.c') 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, -- cgit v1.2.3-56-ge451