summaryrefslogtreecommitdiffstats
path: root/tetris/input.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-05-25 04:33:53 +0000
committerdholland <dholland@NetBSD.org>2009-05-25 04:33:53 +0000
commit1bd61fb54c34405648439ff594fd701b27dbc4fa (patch)
tree5d099362f463682a5e7098beb2a75a6ccfe101a1 /tetris/input.c
parentc18a2b81cd2cb991ea919bb6baa6982899dc590c (diff)
downloadbsdgames-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/input.c')
-rw-r--r--tetris/input.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tetris/input.c b/tetris/input.c
index cd4d431e..e5f8c12a 100644
--- a/tetris/input.c
+++ b/tetris/input.c
@@ -1,4 +1,4 @@
-/* $NetBSD: input.c,v 1.10 2006/03/19 00:50:28 christos Exp $ */
+/* $NetBSD: input.c,v 1.11 2009/05/25 04:33:53 dholland Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -72,8 +72,7 @@
* Return 0 => no input, 1 => can read() from stdin
*/
int
-rwait(tvp)
- struct timeval *tvp;
+rwait(struct timeval *tvp)
{
struct pollfd set[1];
struct timeval starttv, endtv;
@@ -120,7 +119,7 @@ again:
* Eat any input that might be available.
*/
void
-tsleep()
+tsleep(void)
{
struct timeval tv;
char c;
@@ -136,7 +135,7 @@ tsleep()
* getchar with timeout.
*/
int
-tgetchar()
+tgetchar(void)
{
static struct timeval timeleft;
char c;