Compare commits

..

No commits in common. "factory" and "factory" have entirely different histories.

6 changed files with 1 additions and 61 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:433bd983dff7ff9cdd0fcaf9ebd5dd815badac611feaa2c0928b0ca4dd9efd03
size 263250

View File

@ -1,10 +0,0 @@
--- 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

View File

@ -1,17 +0,0 @@
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;
}

View File

@ -1,10 +0,0 @@
--- 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"

View File

@ -1,21 +0,0 @@
--- 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;
}