diff options
author | alfred <alfred@FreeBSD.org> | 2002-05-28 21:41:02 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-05-28 21:41:02 +0000 |
commit | a1f58961268c7ff96687dafb1c1ee8a549a8a26c (patch) | |
tree | 4e49be311e578160f77a3c9a0fe5802d342ad9e2 /games/mille/end.c | |
parent | e13f727e6ba268ec6cde31dfcc44f0677a178a86 (diff) | |
download | FreeBSD-src-a1f58961268c7ff96687dafb1c1ee8a549a8a26c.zip FreeBSD-src-a1f58961268c7ff96687dafb1c1ee8a549a8a26c.tar.gz |
Make almost WARNS=5 compliant:
ANSI'fy function declarations.
Constify some globals and function paramters.
Remove unsused arguments.
Fix (rename) shadowed variables.
Diffstat (limited to 'games/mille/end.c')
-rw-r--r-- | games/mille/end.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/games/mille/end.c b/games/mille/end.c index ff35779..90a0668 100644 --- a/games/mille/end.c +++ b/games/mille/end.c @@ -55,9 +55,8 @@ void undoex(void); * the end-of-games points to the user who deserves it (if any). */ void -finalscore(pp) - PLAY *pp; { - +finalscore(PLAY *pp) +{ int temp, tot, num; if (pp->was_finished == Finished) @@ -100,9 +99,8 @@ static int Last_tot[2]; /* last tot used for extrapolate */ * the end-of-games points to the user who deserves it (if any). */ void -extrapolate(pp) - PLAY *pp; { - +extrapolate(PLAY *pp) +{ int x, num, tot, count; num = pp - Player; @@ -145,8 +143,8 @@ extrapolate(pp) } void -undoex() { - +undoex(void) +{ reg PLAY *pp; reg int i; |