aboutsummaryrefslogtreecommitdiff
path: root/games/bs
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-11-16 02:58:06 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-11-16 02:58:06 +0000
commit727bf60729b6e2f693b3a1162a2f4b32e49bf8bd (patch)
treea0cca4d47c73890ff2acd4b0d9331509ac360eb2 /games/bs
parent879099e5568801911b66f1ea9085fed24fc12560 (diff)
downloadsrc-727bf60729b6e2f693b3a1162a2f4b32e49bf8bd.tar.gz
src-727bf60729b6e2f693b3a1162a2f4b32e49bf8bd.zip
Sync our register usage with NetBSD's (non-)usage.
Notes
Notes: svn path=/head/; revision=53210
Diffstat (limited to 'games/bs')
-rw-r--r--games/bs/bs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/games/bs/bs.c b/games/bs/bs.c
index 216bc0cc6e29..76133066357f 100644
--- a/games/bs/bs.c
+++ b/games/bs/bs.c
@@ -306,8 +306,8 @@ static void randomplace(b, ss)
int b;
ship_t *ss;
{
- register int bwidth = BWIDTH - ss->length;
- register int bdepth = BDEPTH - ss->length;
+ int bwidth = BWIDTH - ss->length;
+ int bdepth = BDEPTH - ss->length;
do {
ss->y = rnd(bdepth);
@@ -702,7 +702,7 @@ static int awinna()
}
static ship_t *hitship(x, y)
-/* register a hit on the targeted ship */
+/* a hit on the targeted ship */
int x, y;
{
ship_t *sb, *ss;
@@ -1113,7 +1113,7 @@ static void do_options(c,op)
int c;
char *op[];
{
- register int i;
+ int i;
if (c > 1)
{
@@ -1167,8 +1167,8 @@ char *op[];
static int scount(who)
int who;
{
- register int i, shots;
- register ship_t *sp;
+ int i, shots;
+ ship_t *sp;
if (who)
sp = cpuship; /* count cpu shots */
@@ -1210,7 +1210,7 @@ char *argv[];
}
else
{
- register int i;
+ int i;
i = scount(turn);
while (i--)