forked from pool/gnuchess
Compare commits
No commits in common. "factory" and "factory" have entirely different histories.
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
.osc
|
|
3
gnuchess-5.07.94.1b.tar.bz2
Normal file
3
gnuchess-5.07.94.1b.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:433bd983dff7ff9cdd0fcaf9ebd5dd815badac611feaa2c0928b0ca4dd9efd03
|
||||||
|
size 263250
|
10
gnuchess-add_new_bookpath.diff
Normal file
10
gnuchess-add_new_bookpath.diff
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- src/book.c.orig 2010-08-04 20:11:16.000000000 +0200
|
||||||
|
+++ src/book.c 2010-08-04 20:12:15.000000000 +0200
|
||||||
|
@@ -135,6 +135,7 @@
|
||||||
|
|
||||||
|
static char const * bookbin[] = {
|
||||||
|
"book.dat",
|
||||||
|
+ "/usr/share/gnuchess/book.dat",
|
||||||
|
"/usr/share/games/gnuchess/book.dat",
|
||||||
|
"/usr/lib/games/gnuchess/book.dat",
|
||||||
|
NULL
|
17
gnuchess-fix-missing-fclose.diff
Normal file
17
gnuchess-fix-missing-fclose.diff
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Index: src/book.c
|
||||||
|
===================================================================
|
||||||
|
--- src/book.c.orig
|
||||||
|
+++ src/book.c
|
||||||
|
@@ -343,9 +343,11 @@ int BookBuilderOpen(void)
|
||||||
|
}
|
||||||
|
digest_bits = MAX_DIGEST_BITS;
|
||||||
|
/* We use read_book() here only to allocate memory */
|
||||||
|
- if (read_book(wfp) == BOOK_ENOMEM) {
|
||||||
|
+ if (read_book(rfp) == BOOK_ENOMEM) {
|
||||||
|
+ fclose(rfp);
|
||||||
|
return BOOK_ENOMEM;
|
||||||
|
}
|
||||||
|
+ fclose(rfp);
|
||||||
|
}
|
||||||
|
return BOOK_SUCCESS;
|
||||||
|
}
|
10
gnuchess-missing-includes_implicit-fortify-decl.diff
Normal file
10
gnuchess-missing-includes_implicit-fortify-decl.diff
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- src/game.c.orig 2010-08-04 20:03:13.000000000 +0200
|
||||||
|
+++ src/game.c 2010-08-04 20:04:02.000000000 +0200
|
||||||
|
@@ -1,6 +1,7 @@
|
||||||
|
// includes
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
#include "game.h"
|
21
gnuchess-no-return-in-nonvoid-function.diff
Normal file
21
gnuchess-no-return-in-nonvoid-function.diff
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
--- src/book.c.orig 2010-08-04 19:58:11.000000000 +0200
|
||||||
|
+++ src/book.c 2010-08-04 19:59:08.000000000 +0200
|
||||||
|
@@ -560,7 +560,7 @@
|
||||||
|
static FILE* BookFileOpen(const char *file){
|
||||||
|
FILE* rfp;
|
||||||
|
rfp = fopen(file, "rb");
|
||||||
|
- if (rfp == NULL) return;
|
||||||
|
+ if (rfp == NULL) return 0;
|
||||||
|
OutputConsole("Read opening book (%s)...\n", file);
|
||||||
|
if (!check_magic(rfp)) {
|
||||||
|
Output( " File %s does not conform to the current format.\n"
|
||||||
|
--- src/timer.c.orig 2010-08-04 20:00:20.000000000 +0200
|
||||||
|
+++ src/timer.c 2010-08-04 20:00:54.000000000 +0200
|
||||||
|
@@ -5,6 +5,7 @@
|
||||||
|
|
||||||
|
TimerStart(timer__t *timer){
|
||||||
|
gettimeofday (timer, NULL);
|
||||||
|
+ return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user