ports/games/xataxx/files/patch-nubot.c
Martin Wilke 6e00b2437a - Update MASTER_SITES
- Fix build with clang
- Add MAKE_JOBS_SAFE
- Reformat pkg-descr

PR:		175592
Submitted by:	Ports Fury
2013-02-04 14:26:51 +00:00

27 lines
605 B
C

--- nubot.c.orig
+++ nubot.c
@@ -1,4 +1,6 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <strings.h>
#include <X11/Xlib.h>
#include "struct.h"
@@ -172,7 +174,7 @@
list_moves(player, board, movel);
- if (movel[0].ox==(-1)) return; /* there are no legal moves */
+ if (movel[0].ox==(-1)) return(0); /* there are no legal moves */
if (botlevel==0) {
for (ix=0; movel[ix].ox!=(-1); ix++);
@@ -180,7 +182,7 @@
best = &(movel[ix]);
move_piece(best->ox,best->oy,best->nx,best->ny,player);
- return;
+ return(0);
};
for (ix=0; movel[ix].ox!=(-1); ix++) {