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.lev.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.lev.c')
-rw-r--r-- | games/hack/hack.lev.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/games/hack/hack.lev.c b/games/hack/hack.lev.c index 4047e45..bdc542e 100644 --- a/games/hack/hack.lev.c +++ b/games/hack/hack.lev.c @@ -28,7 +28,7 @@ xchar lev; { #ifndef NOWORM struct wseg *wtmp, *wtmp2; - tmp; + int tmp; #endif NOWORM if(fd < 0) panic("Save on bad file!"); /* impossible */ @@ -72,7 +72,7 @@ xchar lev; } bwrite(fd,loc,num) -fd; +int fd; char *loc; unsigned num; { @@ -82,7 +82,7 @@ unsigned num; } saveobjchn(fd,otmp) -fd; +int fd; struct obj *otmp; { struct obj *otmp2; @@ -101,7 +101,7 @@ struct obj *otmp; } savemonchn(fd,mtmp) -fd; +int fd; struct monst *mtmp; { struct monst *mtmp2; @@ -124,7 +124,7 @@ struct monst *mtmp; } savegoldchn(fd,gold) -fd; +int fd; struct gold *gold; { struct gold *gold2; @@ -138,7 +138,7 @@ struct gold *gold; } savetrapchn(fd,trap) -fd; +int fd; struct trap *trap; { struct trap *trap2; @@ -160,7 +160,7 @@ xchar lev; #ifndef NOWORM struct wseg *wtmp; #endif NOWORM - tmp; + int tmp; long omoves; int hpid; xchar dlvl; @@ -256,7 +256,7 @@ xchar lev; } mread(fd, buf, len) -fd; +int fd; char *buf; unsigned len; { |