summaryrefslogtreecommitdiff
path: root/games/xataxx/files/patch-board.c
blob: 6869030f5acde95824dc2505c157858aa8b9bfc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- board.c.orig
+++ board.c
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include <X11/Xlib.h>
 #include "struct.h"
 
@@ -461,7 +462,7 @@
       }
     }
   if (best_count==-1)
-    return;
+    return(0);
   move_piece(best.ox,best.oy,best.nx,best.ny,player);
 }