summaryrefslogtreecommitdiffstats
path: root/games/fish
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/fish
parentecc8d489403ddff78c214db39def15049d5dae6a (diff)
downloadFreeBSD-src-44fac3a89d25ca434f91c4f961a363ea590faae8.zip
FreeBSD-src-44fac3a89d25ca434f91c4f961a363ea590faae8.tar.gz
Sync our register usage with NetBSD's (non-)usage.
Diffstat (limited to 'games/fish')
-rw-r--r--games/fish/fish.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/games/fish/fish.c b/games/fish/fish.c
index 2cea112..a447c0f 100644
--- a/games/fish/fish.c
+++ b/games/fish/fish.c
@@ -125,8 +125,8 @@ istart: for (;;) {
usermove()
{
- register int n;
- register char **p;
+ int n;
+ char **p;
char buf[256];
(void)printf("\nYour hand is:");
@@ -196,7 +196,7 @@ compmove()
promove()
{
- register int i, max;
+ int i, max;
for (i = 0; i < RANKS; ++i)
if (userasked[i] &&
@@ -295,9 +295,9 @@ goodmove(player, move, hand, opphand)
chkwinner(player, hand)
int player;
- register int *hand;
+ int *hand;
{
- register int cb, i, ub;
+ int cb, i, ub;
for (i = 0; i < RANKS; ++i)
if (hand[i] > 0 && hand[i] < CARDS)
@@ -338,7 +338,7 @@ printplayer(player)
printhand(hand)
int *hand;
{
- register int book, i, j;
+ int book, i, j;
for (book = i = 0; i < RANKS; i++)
if (hand[i] < CARDS)
@@ -356,9 +356,9 @@ printhand(hand)
}
countcards(hand)
- register int *hand;
+ int *hand;
{
- register int i, count;
+ int i, count;
for (count = i = 0; i < RANKS; i++)
count += *hand++;
@@ -383,7 +383,7 @@ countbooks(hand)
init()
{
- register int i, rank;
+ int i, rank;
for (i = 0; i < RANKS; ++i)
deck[i] = CARDS;
OpenPOWER on IntegriCloud