mirror of
https://git.freebsd.org/ports.git
synced 2025-06-24 06:00:30 -04:00
- Fix build with clang - Add MAKE_JOBS_SAFE - Reformat pkg-descr PR: 175592 Submitted by: Ports Fury
27 lines
605 B
C
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++) {
|