From 1bd61fb54c34405648439ff594fd701b27dbc4fa Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 25 May 2009 04:33:53 +0000 Subject: 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.) --- tetris/tetris.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'tetris/tetris.c') 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); -- cgit v1.2.3