diff options
| author | dholland <dholland@NetBSD.org> | 2009-05-25 04:33:53 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2009-05-25 04:33:53 +0000 |
| commit | 1bd61fb54c34405648439ff594fd701b27dbc4fa (patch) | |
| tree | 5d099362f463682a5e7098beb2a75a6ccfe101a1 /tetris/scores.c | |
| parent | c18a2b81cd2cb991ea919bb6baa6982899dc590c (diff) | |
| download | bsdgames-darwin-1bd61fb54c34405648439ff594fd701b27dbc4fa.tar.gz bsdgames-darwin-1bd61fb54c34405648439ff594fd701b27dbc4fa.zip | |
ANSIfy function declarations.
Some object file diffs, but they are harmless. (Mostly they seem to
come from internal counters in gcc... and in one case the order of two
instructions was harmlessly swapped, which is odd and annoying.)
Diffstat (limited to 'tetris/scores.c')
| -rw-r--r-- | tetris/scores.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/tetris/scores.c b/tetris/scores.c index d215261c..0ebd03cf 100644 --- a/tetris/scores.c +++ b/tetris/scores.c @@ -1,4 +1,4 @@ -/* $NetBSD: scores.c,v 1.14 2006/06/01 16:12:27 drochner Exp $ */ +/* $NetBSD: scores.c,v 1.15 2009/05/25 04:33:53 dholland Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -90,8 +90,7 @@ static char *thisuser(void); * Note, we assume closing the stdio file releases the lock. */ static void -getscores(fpp) - FILE **fpp; +getscores(FILE **fpp) { int sd, mint, lck; mode_t mask; @@ -145,8 +144,7 @@ getscores(fpp) } void -savescore(level) - int level; +savescore(int level) { struct highscore *sp; int i; @@ -212,7 +210,7 @@ savescore(level) * The result is always trimmed to fit in a score. */ static char * -thisuser() +thisuser(void) { const char *p; struct passwd *pw; @@ -244,8 +242,7 @@ thisuser() * listed first in the highscore file. */ static int -cmpscores(x, y) - const void *x, *y; +cmpscores(const void *x, const void *y) { const struct highscore *a, *b; long l; @@ -274,9 +271,7 @@ cmpscores(x, y) * Caveat: the highest score on each level is always kept. */ static int -checkscores(hs, num) - struct highscore *hs; - int num; +checkscores(struct highscore *hs, int num) { struct highscore *sp; int i, j, k, numnames; @@ -349,8 +344,7 @@ checkscores(hs, num) * before it can be shown anyway. */ void -showscores(level) - int level; +showscores(int level) { struct highscore *sp; int i, n, c; @@ -404,11 +398,7 @@ showscores(level) } static void -printem(level, offset, hs, n, me) - int level, offset; - struct highscore *hs; - int n; - const char *me; +printem(int level, int offset, struct highscore *hs, int n, const char *me) { struct highscore *sp; int nrows, row, col, item, i, highlight; |
