diff options
author | marcel <marcel@FreeBSD.org> | 1999-11-16 10:26:38 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-11-16 10:26:38 +0000 |
commit | 520fff788fc8f2154247a6cff986abf634fdbb51 (patch) | |
tree | 839b85661e38597650d090e9cb482291451611bb /games/hack/hack.shk.c | |
parent | 44fac3a89d25ca434f91c4f961a363ea590faae8 (diff) | |
download | FreeBSD-src-520fff788fc8f2154247a6cff986abf634fdbb51.zip FreeBSD-src-520fff788fc8f2154247a6cff986abf634fdbb51.tar.gz |
Add type int to those variables without a type. This is caused by the
frequent use of ``register var'' instead of ``register int var'' and
the removal of the register hint in the previous commit.
Diffstat (limited to 'games/hack/hack.shk.c')
-rw-r--r-- | games/hack/hack.shk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/hack/hack.shk.c b/games/hack/hack.shk.c index a648761..4104ba8 100644 --- a/games/hack/hack.shk.c +++ b/games/hack/hack.shk.c @@ -122,7 +122,7 @@ struct monst *mtmp; static addupbill(){ /* delivers result in total */ /* caller has checked that shopkeeper exists */ -ct = ESHK(shopkeeper)->billct; +int ct = ESHK(shopkeeper)->billct; struct bill_x *bp = bill; total = 0; while(ct--){ @@ -132,7 +132,7 @@ struct bill_x *bp = bill; } inshop(){ -roomno = inroom(u.ux,u.uy); +int roomno = inroom(u.ux,u.uy); static void findshk(); @@ -230,7 +230,7 @@ roomno = inroom(u.ux,u.uy); static void findshk(roomno) -roomno; +int roomno; { struct monst *mtmp; for(mtmp = fmon; mtmp; mtmp = mtmp->nmon) @@ -753,7 +753,7 @@ int tmp, ac; static realhunger(){ /* not completely foolproof */ -tmp = u.uhunger; +int tmp = u.uhunger; struct obj *otmp = invent; while(otmp){ if(otmp->olet == FOOD_SYM && !otmp->unpaid) |