gnuchess/gnuchess-no-return-in-nonvoid-function.diff
2012-02-06 14:54:39 +00:00

22 lines
636 B
Diff

--- 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;
}