diff options
author | marcel <marcel@FreeBSD.org> | 1999-11-16 12:10:29 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-11-16 12:10:29 +0000 |
commit | 13ed27c1ac224e3cd08385be743ebfffd8341bdc (patch) | |
tree | 841a7a8fea760080c90f468c3b3b51ed3fa3c615 /games | |
parent | c4b721b43b6082267abdfbaf86d8aa5e34b7d5e6 (diff) | |
download | FreeBSD-src-13ed27c1ac224e3cd08385be743ebfffd8341bdc.zip FreeBSD-src-13ed27c1ac224e3cd08385be743ebfffd8341bdc.tar.gz |
Fix breakage in previous commit.
Diffstat (limited to 'games')
-rw-r--r-- | games/sail/dr_1.c | 4 | ||||
-rw-r--r-- | games/sail/dr_3.c | 2 | ||||
-rw-r--r-- | games/sail/dr_4.c | 2 | ||||
-rw-r--r-- | games/sail/misc.c | 12 | ||||
-rw-r--r-- | games/sail/parties.c | 2 | ||||
-rw-r--r-- | games/sail/pl_3.c | 2 | ||||
-rw-r--r-- | games/sail/pl_6.c | 2 | ||||
-rw-r--r-- | games/sail/pl_7.c | 6 | ||||
-rw-r--r-- | games/sail/sync.c | 2 |
9 files changed, 17 insertions, 17 deletions
diff --git a/games/sail/dr_1.c b/games/sail/dr_1.c index 00311fb..9874a0a 100644 --- a/games/sail/dr_1.c +++ b/games/sail/dr_1.c @@ -44,7 +44,7 @@ unfoul() struct ship *sp; struct ship *to; int nat; - i; + int i; foreachship(sp) { if (sp->file->captain[0]) @@ -258,7 +258,7 @@ resolve() compcombat() { - n; + int n; struct ship *sp; struct ship *closest; int crew[3], men = 0, target, temp; diff --git a/games/sail/dr_3.c b/games/sail/dr_3.c index 5565457..f08014d 100644 --- a/games/sail/dr_3.c +++ b/games/sail/dr_3.c @@ -283,7 +283,7 @@ struct ship *ship, *to; int isdefense, count; { struct BP *bp; - obp = 0; + int obp = 0; int n, OBP = 0, DBP = 0, dbp = 0; int qual; diff --git a/games/sail/dr_4.c b/games/sail/dr_4.c index 1442a9d..df77cb6 100644 --- a/games/sail/dr_4.c +++ b/games/sail/dr_4.c @@ -42,7 +42,7 @@ static char sccsid[] = "@(#)dr_4.c 8.1 (Berkeley) 5/31/93"; ungrap(from, to) struct ship *from, *to; { - k; + int k; char friend; if ((k = grappled2(from, to)) == 0) diff --git a/games/sail/misc.c b/games/sail/misc.c index 56dc3c2..5e57a23f 100644 --- a/games/sail/misc.c +++ b/games/sail/misc.c @@ -46,7 +46,7 @@ static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93"; range(from, to) struct ship *from, *to; { - bow1r, bow1c, bow2r, bow2c; + int bow1r, bow1c, bow2r, bow2c; int stern1r, stern1c, stern2c, stern2r; int bb, bs, sb, ss, result; @@ -100,9 +100,9 @@ char side, anyship; } angle(dr, dc) -dr, dc; +int dr, dc; { - i; + int i; if (dc >= 0 && dr > 0) i = 0; @@ -130,7 +130,7 @@ gunsbear(from, to) /* checks for target bow or stern */ struct ship *from, *to; { int Dr, Dc, i; - ang; + int ang; Dr = from->file->row - to->file->row; Dc = to->file->col - from->file->col; @@ -151,8 +151,8 @@ portside(from, on, quick) struct ship *from, *on; int quick; /* returns true if fromship is */ { /* shooting at onship's starboard side */ - ang; - Dr, Dc; + int ang; + int Dr, Dc; Dr = from->file->row - on->file->row; Dc = on->file->col - from->file->col; diff --git a/games/sail/parties.c b/games/sail/parties.c index 250b1a0..f3d5061 100644 --- a/games/sail/parties.c +++ b/games/sail/parties.c @@ -70,7 +70,7 @@ struct ship *ship, *to; char isdefense; { struct BP *p = isdefense ? ship->file->DBP : ship->file->OBP; - n; + int n; for (n = 0; n < NBP; p++, n++) if (p->turnsent && (p->toship == to || isdefense || ship == to)) diff --git a/games/sail/pl_3.c b/games/sail/pl_3.c index 26591f2..d4e79e9 100644 --- a/games/sail/pl_3.c +++ b/games/sail/pl_3.c @@ -259,7 +259,7 @@ grapungrap() unfoulplayer() { struct ship *to; - i; + int i; foreachship(to) { if (fouled2(ms, to) == 0) diff --git a/games/sail/pl_6.c b/games/sail/pl_6.c index 19ecc07..6d30f72 100644 --- a/games/sail/pl_6.c +++ b/games/sail/pl_6.c @@ -145,7 +145,7 @@ turned() loadplayer() { char c; - loadL, loadR, ready, load; + int loadL, loadR, ready, load; if (!mc->crew3) { Signal("Out of crew", (struct ship *)0); diff --git a/games/sail/pl_7.c b/games/sail/pl_7.c index e3bdcb2..1de3141 100644 --- a/games/sail/pl_7.c +++ b/games/sail/pl_7.c @@ -189,7 +189,7 @@ char *p; struct ship *ship; char flag; { - c; + int c; prompt(p, ship); blockalarm(); @@ -206,9 +206,9 @@ char flag; sgetstr(pr, buf, n) char *pr; char *buf; -n; +int n; { - c; + int c; char *p = buf; prompt(pr, (struct ship *)0); diff --git a/games/sail/sync.c b/games/sail/sync.c index 3890091..81117b6 100644 --- a/games/sail/sync.c +++ b/games/sail/sync.c @@ -141,7 +141,7 @@ Write(type, ship, isstr, a, b, c, d) Sync() { sig_t sighup, sigint; - n; + int n; int type, shipnum, isstr, a, b, c, d; char buf[80]; char erred = 0; |