summaryrefslogtreecommitdiffstats
path: root/games/sail
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-11-16 02:58:06 +0000
committerbillf <billf@FreeBSD.org>1999-11-16 02:58:06 +0000
commit44fac3a89d25ca434f91c4f961a363ea590faae8 (patch)
treea0cca4d47c73890ff2acd4b0d9331509ac360eb2 /games/sail
parentecc8d489403ddff78c214db39def15049d5dae6a (diff)
downloadFreeBSD-src-44fac3a89d25ca434f91c4f961a363ea590faae8.zip
FreeBSD-src-44fac3a89d25ca434f91c4f961a363ea590faae8.tar.gz
Sync our register usage with NetBSD's (non-)usage.
Diffstat (limited to 'games/sail')
-rw-r--r--games/sail/assorted.c8
-rw-r--r--games/sail/dr_1.c16
-rw-r--r--games/sail/dr_2.c32
-rw-r--r--games/sail/dr_3.c38
-rw-r--r--games/sail/dr_4.c6
-rw-r--r--games/sail/dr_5.c8
-rw-r--r--games/sail/dr_main.c4
-rw-r--r--games/sail/game.c8
-rw-r--r--games/sail/main.c4
-rw-r--r--games/sail/misc.c32
-rw-r--r--games/sail/parties.c20
-rw-r--r--games/sail/pl_2.c2
-rw-r--r--games/sail/pl_3.c8
-rw-r--r--games/sail/pl_4.c10
-rw-r--r--games/sail/pl_5.c10
-rw-r--r--games/sail/pl_6.c10
-rw-r--r--games/sail/pl_7.c18
-rw-r--r--games/sail/sync.c28
18 files changed, 131 insertions, 131 deletions
diff --git a/games/sail/assorted.c b/games/sail/assorted.c
index 1f450c8..6056632 100644
--- a/games/sail/assorted.c
+++ b/games/sail/assorted.c
@@ -43,11 +43,11 @@ table(rig, shot, hittable, on, from, roll)
struct ship *on, *from;
int rig, shot, hittable, roll;
{
- register int hhits = 0, chits = 0, ghits = 0, rhits = 0;
+ int hhits = 0, chits = 0, ghits = 0, rhits = 0;
int Ghit = 0, Hhit = 0, Rhit = 0, Chit = 0;
int guns, car, pc, hull;
int crew[3];
- register int n;
+ int n;
int rigg[4];
char *message;
struct Tables *tp;
@@ -225,7 +225,7 @@ int rig, shot, hittable, roll;
}
Cleansnag(from, to, all, flag)
-register struct ship *from, *to;
+struct ship *from, *to;
char all, flag;
{
if (flag & 1) {
@@ -251,7 +251,7 @@ char all, flag;
}
strike(ship, from)
-register struct ship *ship, *from;
+struct ship *ship, *from;
{
int points;
diff --git a/games/sail/dr_1.c b/games/sail/dr_1.c
index 2c9c27a..00311fb 100644
--- a/games/sail/dr_1.c
+++ b/games/sail/dr_1.c
@@ -41,10 +41,10 @@ static char sccsid[] = "@(#)dr_1.c 8.1 (Berkeley) 5/31/93";
unfoul()
{
- register struct ship *sp;
+ struct ship *sp;
struct ship *to;
- register int nat;
- register i;
+ int nat;
+ i;
foreachship(sp) {
if (sp->file->captain[0])
@@ -64,7 +64,7 @@ unfoul()
boardcomp()
{
int crew[3];
- register struct ship *sp, *sq;
+ struct ship *sp, *sq;
foreachship(sp) {
if (*sp->file->captain)
@@ -229,7 +229,7 @@ int key;
resolve()
{
int thwart;
- register struct ship *sp, *sq;
+ struct ship *sp, *sq;
foreachship(sp) {
if (sp->file->dir == 0)
@@ -258,8 +258,8 @@ resolve()
compcombat()
{
- register n;
- register struct ship *sp;
+ n;
+ struct ship *sp;
struct ship *closest;
int crew[3], men = 0, target, temp;
int r, guns, ready, load, car;
@@ -396,7 +396,7 @@ next()
people = 0;
}
if (people <= 0 || windspeed == 7) {
- register struct ship *s;
+ struct ship *s;
struct ship *bestship;
float net, best = 0.0;
foreachship(s) {
diff --git a/games/sail/dr_2.c b/games/sail/dr_2.c
index 3dc0b1a..8f4549d 100644
--- a/games/sail/dr_2.c
+++ b/games/sail/dr_2.c
@@ -44,7 +44,7 @@ static char sccsid[] = "@(#)dr_2.c 8.1 (Berkeley) 5/31/93";
thinkofgrapples()
{
- register struct ship *sp, *sq;
+ struct ship *sp, *sq;
char friendly;
foreachship(sp) {
@@ -74,8 +74,8 @@ thinkofgrapples()
checkup()
{
- register struct ship *sp, *sq;
- register char explode, sink;
+ struct ship *sp, *sq;
+ char explode, sink;
foreachship(sp) {
if (sp->file->dir == 0)
@@ -104,7 +104,7 @@ checkup()
prizecheck()
{
- register struct ship *sp;
+ struct ship *sp;
foreachship(sp) {
if (sp->file->captured == 0)
@@ -123,7 +123,7 @@ prizecheck()
strend(str)
char *str;
{
- register char *p;
+ char *p;
for (p = str; *p; p++)
;
@@ -131,7 +131,7 @@ char *str;
}
closeon(from, to, command, ta, ma, af)
-register struct ship *from, *to;
+struct ship *from, *to;
char command[];
int ma, ta, af;
{
@@ -147,12 +147,12 @@ int dtab[] = {0,1,1,2,3,4,4,5}; /* diagonal distances in x==y */
score(movement, ship, to, onlytemp)
char movement[];
-register struct ship *ship, *to;
+struct ship *ship, *to;
char onlytemp;
{
char drift;
int row, col, dir, total, ran;
- register struct File *fp = ship->file;
+ struct File *fp = ship->file;
if ((dir = fp->dir) == 0)
return 0;
@@ -179,11 +179,11 @@ char onlytemp;
}
sail_move(p, ship, dir, row, col, drift)
-register char *p;
-register struct ship *ship;
-register char *dir;
-register short *row, *col;
-register char *drift;
+char *p;
+struct ship *ship;
+char *dir;
+short *row, *col;
+char *drift;
{
int dist;
char moved = 0;
@@ -223,11 +223,11 @@ register char *drift;
}
try(command, temp, ma, ta, af, vma, dir, f, t, high, rakeme)
-register struct ship *f, *t;
+struct ship *f, *t;
int ma, ta, af, vma, dir, *high, rakeme;
char command[], temp[];
{
- register int new, n;
+ int new, n;
char st[4];
#define rakeyou (gunsbear(f, t) && !gunsbear(t, f))
@@ -269,7 +269,7 @@ char command[], temp[];
rmend(str)
char *str;
{
- register char *p;
+ char *p;
for (p = str; *p; p++)
;
diff --git a/games/sail/dr_3.c b/games/sail/dr_3.c
index 5d656d7..5565457 100644
--- a/games/sail/dr_3.c
+++ b/games/sail/dr_3.c
@@ -41,9 +41,9 @@ static char sccsid[] = "@(#)dr_3.c 8.1 (Berkeley) 5/31/93";
moveall() /* move all comp ships */
{
- register struct ship *sp, *sq; /* r11, r10 */
- register int n; /* r9 */
- register int k, l; /* r8, r7 */
+ struct ship *sp, *sq; /* r11, r10 */
+ int n; /* r9 */
+ int k, l; /* r8, r7 */
int row[NSHIP], col[NSHIP], dir[NSHIP], drift[NSHIP];
char moved[NSHIP];
@@ -178,9 +178,9 @@ moveall() /* move all comp ships */
}
stillmoving(k)
-register int k;
+int k;
{
- register struct ship *sp;
+ struct ship *sp;
foreachship(sp)
if (sp->file->movebuf[k])
@@ -189,9 +189,9 @@ register int k;
}
isolated(ship)
-register struct ship *ship;
+struct ship *ship;
{
- register struct ship *sp;
+ struct ship *sp;
foreachship(sp) {
if (ship != sp && range(ship, sp) <= 10)
@@ -201,9 +201,9 @@ register struct ship *ship;
}
push(from, to)
-register struct ship *from, *to;
+struct ship *from, *to;
{
- register int bs, sb;
+ int bs, sb;
sb = to->specs->guns;
bs = from->specs->guns;
@@ -216,10 +216,10 @@ register struct ship *from, *to;
step(com, sp, moved)
char com;
-register struct ship *sp;
+struct ship *sp;
char *moved;
{
- register int dist;
+ int dist;
switch (com) {
case 'r':
@@ -257,12 +257,12 @@ char *moved;
}
sendbp(from, to, sections, isdefense)
-register struct ship *from, *to;
+struct ship *from, *to;
int sections;
char isdefense;
{
int n;
- register struct BP *bp;
+ struct BP *bp;
bp = isdefense ? from->file->DBP : from->file->OBP;
for (n = 0; n < NBP && bp[n].turnsent; n++)
@@ -279,11 +279,11 @@ char isdefense;
}
toughmelee(ship, to, isdefense, count)
-register struct ship *ship, *to;
+struct ship *ship, *to;
int isdefense, count;
{
- register struct BP *bp;
- register obp = 0;
+ struct BP *bp;
+ obp = 0;
int n, OBP = 0, DBP = 0, dbp = 0;
int qual;
@@ -312,7 +312,7 @@ int isdefense, count;
reload()
{
- register struct ship *sp;
+ struct ship *sp;
foreachship(sp) {
sp->file->loadwith = 0;
@@ -321,8 +321,8 @@ reload()
checksails()
{
- register struct ship *sp;
- register int rig, full;
+ struct ship *sp;
+ int rig, full;
struct ship *close;
foreachship(sp) {
diff --git a/games/sail/dr_4.c b/games/sail/dr_4.c
index d652579..1442a9d 100644
--- a/games/sail/dr_4.c
+++ b/games/sail/dr_4.c
@@ -40,9 +40,9 @@ static char sccsid[] = "@(#)dr_4.c 8.1 (Berkeley) 5/31/93";
#include "externs.h"
ungrap(from, to)
-register struct ship *from, *to;
+struct ship *from, *to;
{
- register k;
+ k;
char friend;
if ((k = grappled2(from, to)) == 0)
@@ -57,7 +57,7 @@ register struct ship *from, *to;
}
grap(from, to)
-register struct ship *from, *to;
+struct ship *from, *to;
{
if (capship(from)->nationality != capship(to)->nationality && die() > 2)
return;
diff --git a/games/sail/dr_5.c b/games/sail/dr_5.c
index 62aa101..893d7cc 100644
--- a/games/sail/dr_5.c
+++ b/games/sail/dr_5.c
@@ -42,9 +42,9 @@ static char sccsid[] = "@(#)dr_5.c 8.1 (Berkeley) 5/31/93";
subtract(from, totalfrom, crewfrom, fromcap, pcfrom)
struct ship *from, *fromcap;
int pcfrom;
-register int totalfrom, crewfrom[3];
+int totalfrom, crewfrom[3];
{
- register int n;
+ int n;
if (fromcap == from && totalfrom) { /* if not captured */
for (n = 0; n < 3; n++) {
@@ -70,9 +70,9 @@ int crew[3], *pc;
char isdefense;
{ /* returns # of crew squares sent */
int men = 0;
- register int n;
+ int n;
int c1, c2, c3;
- register struct BP *bp;
+ struct BP *bp;
*pc = from->file->pcrew;
*captured = from->file->captured;
diff --git a/games/sail/dr_main.c b/games/sail/dr_main.c
index cbb3c73..ed5378e 100644
--- a/games/sail/dr_main.c
+++ b/games/sail/dr_main.c
@@ -41,8 +41,8 @@ static char sccsid[] = "@(#)dr_main.c 8.2 (Berkeley) 4/16/94";
dr_main()
{
- register int n;
- register struct ship *sp;
+ int n;
+ struct ship *sp;
int nat[NNATION];
int value = 0;
diff --git a/games/sail/game.c b/games/sail/game.c
index b2e6988..646340a 100644
--- a/games/sail/game.c
+++ b/games/sail/game.c
@@ -40,10 +40,10 @@ static char sccsid[] = "@(#)game.c 8.1 (Berkeley) 5/31/93";
#include "externs.h"
maxturns(ship, af)
-register struct ship *ship;
+struct ship *ship;
char *af;
{
- register int turns;
+ int turns;
turns = ship->specs->ta;
if (*af = (ship->file->drift > 1 && turns)) {
@@ -55,10 +55,10 @@ char *af;
}
maxmove(ship, dir, fs)
-register struct ship *ship;
+struct ship *ship;
int dir, fs;
{
- register int riggone = 0, Move, flank = 0;
+ int riggone = 0, Move, flank = 0;
Move = ship->specs->bs;
if (!ship->specs->rig1)
diff --git a/games/sail/main.c b/games/sail/main.c
index 8bb7f81..79d0c71 100644
--- a/games/sail/main.c
+++ b/games/sail/main.c
@@ -48,9 +48,9 @@ static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
/*ARGSUSED*/
main(argc, argv)
int argc;
- register char **argv;
+ char **argv;
{
- register char *p;
+ char *p;
int i;
srandomdev();
diff --git a/games/sail/misc.c b/games/sail/misc.c
index 256425d4..56dc3c2 100644
--- a/games/sail/misc.c
+++ b/games/sail/misc.c
@@ -46,9 +46,9 @@ static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93";
range(from, to)
struct ship *from, *to;
{
- register bow1r, bow1c, bow2r, bow2c;
+ bow1r, bow1c, bow2r, bow2c;
int stern1r, stern1c, stern2c, stern2r;
- register int bb, bs, sb, ss, result;
+ int bb, bs, sb, ss, result;
if (!to->file->dir)
return -1;
@@ -72,11 +72,11 @@ struct ship *from, *to;
struct ship *
closestenemy(from, side, anyship)
-register struct ship *from;
+struct ship *from;
char side, anyship;
{
- register struct ship *sp;
- register char a;
+ struct ship *sp;
+ char a;
int olddist = 30000, dist;
struct ship *closest = 0;
@@ -100,9 +100,9 @@ char side, anyship;
}
angle(dr, dc)
-register dr, dc;
+dr, dc;
{
- register i;
+ i;
if (dc >= 0 && dr > 0)
i = 0;
@@ -127,10 +127,10 @@ register dr, dc;
}
gunsbear(from, to) /* checks for target bow or stern */
-register struct ship *from, *to;
+struct ship *from, *to;
{
int Dr, Dc, i;
- register ang;
+ ang;
Dr = from->file->row - to->file->row;
Dc = to->file->col - from->file->col;
@@ -148,11 +148,11 @@ register struct ship *from, *to;
}
portside(from, on, quick)
-register struct ship *from, *on;
+struct ship *from, *on;
int quick; /* returns true if fromship is */
{ /* shooting at onship's starboard side */
- register ang;
- register Dr, Dc;
+ ang;
+ Dr, Dc;
Dr = from->file->row - on->file->row;
Dc = on->file->col - from->file->col;
@@ -168,9 +168,9 @@ int quick; /* returns true if fromship is */
}
colours(sp)
-register struct ship *sp;
+struct ship *sp;
{
- register char flag;
+ char flag;
if (sp->file->struck)
flag = '!';
@@ -186,14 +186,14 @@ register struct ship *sp;
#include <sys/file.h>
log(s)
-register struct ship *s;
+struct ship *s;
{
FILE *fp;
int persons;
int n;
struct logs log[NLOG];
float net;
- register struct logs *lp;
+ struct logs *lp;
if ((fp = fopen(_PATH_LOGFILE, "r+")) == NULL)
return;
diff --git a/games/sail/parties.c b/games/sail/parties.c
index 874d071..250b1a0 100644
--- a/games/sail/parties.c
+++ b/games/sail/parties.c
@@ -41,10 +41,10 @@ static char sccsid[] = "@(#)parties.c 8.1 (Berkeley) 5/31/93";
meleeing(from, to)
struct ship *from;
-register struct ship *to;
+struct ship *to;
{
- register struct BP *p = from->file->OBP;
- register struct BP *q = p + NBP;
+ struct BP *p = from->file->OBP;
+ struct BP *q = p + NBP;
for (; p < q; p++)
if (p->turnsent && p->toship == to)
@@ -53,11 +53,11 @@ register struct ship *to;
}
boarding(from, isdefense)
-register struct ship *from;
+struct ship *from;
char isdefense;
{
- register struct BP *p = isdefense ? from->file->DBP : from->file->OBP;
- register struct BP *q = p + NBP;
+ struct BP *p = isdefense ? from->file->DBP : from->file->OBP;
+ struct BP *q = p + NBP;
for (; p < q; p++)
if (p->turnsent)
@@ -66,11 +66,11 @@ char isdefense;
}
unboard(ship, to, isdefense)
-register struct ship *ship, *to;
-register char isdefense;
+struct ship *ship, *to;
+char isdefense;
{
- register struct BP *p = isdefense ? ship->file->DBP : ship->file->OBP;
- register n;
+ struct BP *p = isdefense ? ship->file->DBP : ship->file->OBP;
+ n;
for (n = 0; n < NBP; p++, n++)
if (p->turnsent && (p->toship == to || isdefense || ship == to))
diff --git a/games/sail/pl_2.c b/games/sail/pl_2.c
index 0929419..1512443 100644
--- a/games/sail/pl_2.c
+++ b/games/sail/pl_2.c
@@ -41,7 +41,7 @@ static char sccsid[] = "@(#)pl_2.c 8.1 (Berkeley) 5/31/93";
play()
{
- register struct ship *sp;
+ struct ship *sp;
for (;;) {
switch (sgetch("~\b", (struct ship *)0, 0)) {
diff --git a/games/sail/pl_3.c b/games/sail/pl_3.c
index ac1040e..26591f2 100644
--- a/games/sail/pl_3.c
+++ b/games/sail/pl_3.c
@@ -216,8 +216,8 @@ acceptcombat()
grapungrap()
{
- register struct ship *sp;
- register int i;
+ struct ship *sp;
+ int i;
foreachship(sp) {
if (sp == ms || sp->file->dir == 0)
@@ -258,8 +258,8 @@ grapungrap()
unfoulplayer()
{
- register struct ship *to;
- register i;
+ struct ship *to;
+ i;
foreachship(to) {
if (fouled2(ms, to) == 0)
diff --git a/games/sail/pl_4.c b/games/sail/pl_4.c
index e487aaf..db979d9 100644
--- a/games/sail/pl_4.c
+++ b/games/sail/pl_4.c
@@ -68,7 +68,7 @@ changesail()
acceptsignal()
{
char buf[60];
- register char *p = buf;
+ char *p = buf;
*p++ = '"';
sgetstr("Message? ", p, sizeof buf - 2);
@@ -81,9 +81,9 @@ acceptsignal()
lookout()
{
- register struct ship *sp;
+ struct ship *sp;
char buf[3];
- register char c;
+ char c;
sgetstr("What ship? ", buf, sizeof buf);
foreachship(sp) {
@@ -98,7 +98,7 @@ lookout()
char *
saywhat(sp, flag)
-register struct ship *sp;
+struct ship *sp;
char flag;
{
if (sp->file->captain[0])
@@ -114,7 +114,7 @@ char flag;
}
eyeball(ship)
-register struct ship *ship;
+struct ship *ship;
{
int i;
diff --git a/games/sail/pl_5.c b/games/sail/pl_5.c
index 8949173..5623bba 100644
--- a/games/sail/pl_5.c
+++ b/games/sail/pl_5.c
@@ -51,7 +51,7 @@ acceptmove()
int vma, dir;
char prompt[60];
char buf[60], last = '\0';
- register char *p;
+ char *p;
if (!mc->crew3 || snagged(ms) || !windspeed) {
Signal("Unable to move", (struct ship *)0);
@@ -148,8 +148,8 @@ acceptmove()
acceptboard()
{
- register struct ship *sp;
- register int n;
+ struct ship *sp;
+ int n;
int crew[3];
int men = 0;
char c;
@@ -199,12 +199,12 @@ acceptboard()
}
parties(crew, to, isdefense, buf)
-register struct ship *to;
+struct ship *to;
int crew[3];
char isdefense;
char buf;
{
- register int k, j, men;
+ int k, j, men;
struct BP *ptr;
int temp[3];
diff --git a/games/sail/pl_6.c b/games/sail/pl_6.c
index aa6f541..19ecc07 100644
--- a/games/sail/pl_6.c
+++ b/games/sail/pl_6.c
@@ -42,9 +42,9 @@ static char sccsid[] = "@(#)pl_6.c 8.1 (Berkeley) 5/31/93";
repair()
{
char c;
- register char *repairs;
- register struct shipspecs *ptr = mc;
- register int count;
+ char *repairs;
+ struct shipspecs *ptr = mc;
+ int count;
#define FIX(x, m) (m - ptr->x > count \
? (ptr->x += count, count = 0) : (count -= m - ptr->x, ptr->x = m))
@@ -134,7 +134,7 @@ repair()
turned()
{
- register char *p;
+ char *p;
for (p = movebuf; *p; p++)
if (*p == 'r' || *p == 'l')
@@ -145,7 +145,7 @@ turned()
loadplayer()
{
char c;
- register loadL, loadR, ready, load;
+ 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 6ad01cc..e3bdcb2 100644
--- a/games/sail/pl_7.c
+++ b/games/sail/pl_7.c
@@ -136,7 +136,7 @@ newturn()
/*VARARGS2*/
Signal(fmt, ship, a, b, c, d)
char *fmt;
-register struct ship *ship;
+struct ship *ship;
int a, b, c, d;
{
if (!done_curses)
@@ -160,7 +160,7 @@ Scroll()
}
prompt(p, ship)
-register char *p;
+char *p;
struct ship *ship;
{
static char buf[60];
@@ -189,7 +189,7 @@ char *p;
struct ship *ship;
char flag;
{
- register c;
+ c;
prompt(p, ship);
blockalarm();
@@ -205,11 +205,11 @@ char flag;
sgetstr(pr, buf, n)
char *pr;
-register char *buf;
-register n;
+char *buf;
+n;
{
- register c;
- register char *p = buf;
+ c;
+ char *p = buf;
prompt(pr, (struct ship *)0);
sc_buf = buf;
@@ -252,7 +252,7 @@ draw_screen()
draw_view()
{
- register struct ship *sp;
+ struct ship *sp;
(void) werase(view_w);
foreachship(sp) {
@@ -385,7 +385,7 @@ draw_slot()
draw_board()
{
- register int n;
+ int n;
(void) clear();
(void) werase(view_w);
diff --git a/games/sail/sync.c b/games/sail/sync.c
index 786d284..3890091 100644
--- a/games/sail/sync.c
+++ b/games/sail/sync.c
@@ -56,7 +56,7 @@ static FILE *sync_fp;
makesignal(from, fmt, ship, a, b, c)
struct ship *from;
char *fmt;
- register struct ship *ship;
+ struct ship *ship;
{
char message[80];
@@ -141,7 +141,7 @@ Write(type, ship, isstr, a, b, c, d)
Sync()
{
sig_t sighup, sigint;
- register n;
+ n;
int type, shipnum, isstr, a, b, c, d;
char buf[80];
char erred = 0;
@@ -180,7 +180,7 @@ Sync()
if (isstr != 0 && isstr != 1)
goto bad;
if (isstr) {
- register char *p;
+ char *p;
for (p = buf;;) {
switch (*p++ = getc(sync_fp)) {
case '\n':
@@ -228,26 +228,26 @@ out:
sync_update(type, ship, a, b, c, d)
int type;
- register struct ship *ship;
+ struct ship *ship;
long a, b, c, d;
{
switch (type) {
case W_DBP: {
- register struct BP *p = &ship->file->DBP[a];
+ struct BP *p = &ship->file->DBP[a];
p->turnsent = b;
p->toship = SHIP(c);
p->mensent = d;
break;
}
case W_OBP: {
- register struct BP *p = &ship->file->OBP[a];
+ struct BP *p = &ship->file->OBP[a];
p->turnsent = b;
p->toship = SHIP(c);
p->mensent = d;
break;
}
case W_FOUL: {
- register struct snag *p = &ship->file->foul[a];
+ struct snag *p = &ship->file->foul[a];
if (SHIP(a)->file->dir == 0)
break;
if (p->sn_count++ == 0)
@@ -256,7 +256,7 @@ sync_update(type, ship, a, b, c, d)
break;
}
case W_GRAP: {
- register struct snag *p = &ship->file->grap[a];
+ struct snag *p = &ship->file->grap[a];
if (SHIP(a)->file->dir == 0)
break;
if (p->sn_count++ == 0)
@@ -265,7 +265,7 @@ sync_update(type, ship, a, b, c, d)
break;
}
case W_UNFOUL: {
- register struct snag *p = &ship->file->foul[a];
+ struct snag *p = &ship->file->foul[a];
if (p->sn_count > 0) {
if (b) {
ship->file->nfoul -= p->sn_count;
@@ -278,7 +278,7 @@ sync_update(type, ship, a, b, c, d)
break;
}
case W_UNGRAP: {
- register struct snag *p = &ship->file->grap[a];
+ struct snag *p = &ship->file->grap[a];
if (p->sn_count > 0) {
if (b) {
ship->file->ngrap -= p->sn_count;
@@ -299,7 +299,7 @@ sync_update(type, ship, a, b, c, d)
}
break;
case W_CREW: {
- register struct shipspecs *s = ship->specs;
+ struct shipspecs *s = ship->specs;
s->crew1 = a;
s->crew2 = b;
s->crew3 = c;
@@ -330,13 +330,13 @@ sync_update(type, ship, a, b, c, d)
ship->file->FS = a;
break;
case W_GUNL: {
- register struct shipspecs *s = ship->specs;
+ struct shipspecs *s = ship->specs;
s->gunL = a;
s->carL = b;
break;
}
case W_GUNR: {
- register struct shipspecs *s = ship->specs;
+ struct shipspecs *s = ship->specs;
s->gunR = a;
s->carR = b;
break;
@@ -359,7 +359,7 @@ sync_update(type, ship, a, b, c, d)
ship->specs->qual = a;
break;
case W_RIGG: {
- register struct shipspecs *s = ship->specs;
+ struct shipspecs *s = ship->specs;
s->rig1 = a;
s->rig2 = b;
s->rig3 = c;
OpenPOWER on IntegriCloud