summaryrefslogtreecommitdiff
path: root/games/gnuchess/patches/patch-ab
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-11-17 23:06:20 +0000
committertron <tron@pkgsrc.org>1999-11-17 23:06:20 +0000
commit45bd4ad8fbabf3cd18718bd2b96f6d6d00284755 (patch)
tree9b41e8cd84c340cc38e5e1e66347e994a7bb90f7 /games/gnuchess/patches/patch-ab
parent42a56ab4313f036c22517edc7e8cbb81893409e6 (diff)
downloadpkgsrc-45bd4ad8fbabf3cd18718bd2b96f6d6d00284755.tar.gz
Update "gnuchess" package to version 4.0.pl80:
- bug in gnuan (difftime was one parameter, should be two.)
Diffstat (limited to 'games/gnuchess/patches/patch-ab')
-rw-r--r--games/gnuchess/patches/patch-ab15
1 files changed, 3 insertions, 12 deletions
diff --git a/games/gnuchess/patches/patch-ab b/games/gnuchess/patches/patch-ab
index b72036ab048..819ff1e9aed 100644
--- a/games/gnuchess/patches/patch-ab
+++ b/games/gnuchess/patches/patch-ab
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.1.1.1 1999/02/08 08:48:37 frueauf Exp $
+$NetBSD: patch-ab,v 1.2 1999/11/17 23:06:22 tron Exp $
---- ../../gnuchess-4.0.pl79/src/gnuan.c Mon Sep 28 08:41:21 1998
-+++ ./src/gnuan.c Thu Dec 10 23:39:26 1998
+--- gnuan.c.orig Sat Apr 3 05:58:53 1999
++++ gnuan.c Wed Nov 17 23:57:25 1999
@@ -1348,12 +1348,12 @@
fpout = stderr;
fprintf (fpout, "Input the file with the algebraic moves of the game.\n");
@@ -45,12 +45,3 @@ $NetBSD: patch-ab,v 1.1.1.1 1999/02/08 08:48:37 frueauf Exp $
p = GNUANinbuf1;
q = GNUANinbuf;
while (true)
-@@ -1724,7 +1725,7 @@
- move_percent[black] = ((float) same_moves[black]) * 200 / (float) (GNUANmovecnt + (GNUANmovecnt % 2 ? 1 : 0));
- fprintf (fpout, "\n White's percentage was %5.2f%%. Black's percentage was %5.2f%%.\n", move_percent[white], move_percent[black]);
- time (&end_time);
-- elapsed_time = difftime(end_time - start_time);
-+ elapsed_time = difftime(end_time, start_time);
- fprintf (fpout, "\n Elapsed time was %ld seconds.\n", elapsed_time);
- fclose (fpin);
- fclose (fpout);