summaryrefslogtreecommitdiffstats
path: root/games/sail
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-04-19 03:59:02 +0000
committersteve <steve@FreeBSD.org>1999-04-19 03:59:02 +0000
commitd59a3ca336bac3dac6ad8918ff6cb28fcbbba718 (patch)
treec2b57d23128f242645f8e3e16274a587229383ec /games/sail
parent390eb1b3d201760a5e8b76e2431c1f667648718f (diff)
downloadFreeBSD-src-d59a3ca336bac3dac6ad8918ff6cb28fcbbba718.zip
FreeBSD-src-d59a3ca336bac3dac6ad8918ff6cb28fcbbba718.tar.gz
Merge a bunch of cleanups from NetBSD.
PR: 8083 Submitted by: Stephen J. Roznowski <sjr@home.net> Obtained from: a whole slew of NetBSD PRs
Diffstat (limited to 'games/sail')
-rw-r--r--games/sail/dr_2.c6
-rw-r--r--games/sail/sync.c1
2 files changed, 4 insertions, 3 deletions
diff --git a/games/sail/dr_2.c b/games/sail/dr_2.c
index 908287d..e495275 100644
--- a/games/sail/dr_2.c
+++ b/games/sail/dr_2.c
@@ -157,7 +157,7 @@ char onlytemp;
row = fp->row;
col = fp->col;
drift = fp->drift;
- move(movement, ship, &fp->dir, &fp->row, &fp->col, &drift);
+ sail_move(movement, ship, &fp->dir, &fp->row, &fp->col, &drift);
if (!*movement)
(void) strcpy(movement, "d");
@@ -176,7 +176,7 @@ char onlytemp;
return total;
}
-move(p, ship, dir, row, col, drift)
+sail_move(p, ship, dir, row, col, drift)
register char *p;
register struct ship *ship;
register char *dir;
@@ -222,7 +222,7 @@ register char *drift;
try(command, temp, ma, ta, af, vma, dir, f, t, high, rakeme)
register struct ship *f, *t;
-int ma, ta, af, *high, rakeme;
+int ma, ta, af, vma, dir, *high, rakeme;
char command[], temp[];
{
register int new, n;
diff --git a/games/sail/sync.c b/games/sail/sync.c
index c02bd52..b896eed 100644
--- a/games/sail/sync.c
+++ b/games/sail/sync.c
@@ -70,6 +70,7 @@ makesignal(from, fmt, ship, a, b, c)
#include <sys/types.h>
#include <sys/stat.h>
sync_exists(game)
+int game;
{
char buf[sizeof sync_file];
struct stat s;
OpenPOWER on IntegriCloud