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/tetris.c | |
parent | c18a2b81cd2cb991ea919bb6baa6982899dc590c (diff) | |
download | bsdgames-darwin-1bd61fb54c34405648439ff594fd701b27dbc4fa.tar.gz bsdgames-darwin-1bd61fb54c34405648439ff594fd701b27dbc4fa.tar.zst 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/tetris.c')
-rw-r--r-- | tetris/tetris.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tetris/tetris.c b/tetris/tetris.c index 930ce46b..69b2312f 100644 --- a/tetris/tetris.c +++ b/tetris/tetris.c @@ -1,4 +1,4 @@ -/* $NetBSD: tetris.c,v 1.20 2009/05/25 00:46:01 dholland Exp $ */ +/* $NetBSD: tetris.c,v 1.21 2009/05/25 04:33:53 dholland Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -86,7 +86,7 @@ static void setup_board(void); * right edges are set. */ static void -setup_board() +setup_board(void) { int i; cell *p; @@ -100,7 +100,7 @@ setup_board() * Elide any full active rows. */ static void -elide() +elide(void) { int i, j, base; cell *p; @@ -125,9 +125,7 @@ elide() } int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int pos, c; const char *keys; @@ -321,8 +319,7 @@ main(argc, argv) } void -onintr(signo) - int signo __unused; +onintr(int signo __unused) { scr_clear(); scr_end(); @@ -330,7 +327,7 @@ onintr(signo) } void -usage() +usage(void) { (void)fprintf(stderr, "usage: tetris [-ps] [-k keys] [-l level]\n"); exit(1); |