summaryrefslogtreecommitdiff
path: root/games/tetris/input.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-10 07:26:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-10 07:26:25 +0000
commit81fbdc5dca4ba4f9673c612f03fede15c8ad3f91 (patch)
treebb4eddffc1438ca1405dde0867782c5b37066a26 /games/tetris/input.c
parent123f3b7651527e3cd41a6956ecd641c00442b6c7 (diff)
more ansi; khalek@linuxgamers.net
Diffstat (limited to 'games/tetris/input.c')
-rw-r--r--games/tetris/input.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/games/tetris/input.c b/games/tetris/input.c
index 6fef4732e4a..2bdd0686d46 100644
--- a/games/tetris/input.c
+++ b/games/tetris/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.10 2003/06/03 03:01:41 millert Exp $ */
+/* $OpenBSD: input.c,v 1.11 2004/07/10 07:26:24 deraadt Exp $ */
/* $NetBSD: input.c,v 1.3 1996/02/06 22:47:33 jtc Exp $ */
/*-
@@ -73,8 +73,7 @@
* Return 0 => no input, 1 => can read() from stdin
*/
int
-rwait(tvp)
- struct timeval *tvp;
+rwait(struct timeval *tvp)
{
struct timeval starttv, endtv, *s;
fd_set fds;
@@ -124,7 +123,7 @@ again:
* Eat any input that might be available.
*/
void
-tsleep()
+tsleep(void)
{
struct timeval tv;
char c;
@@ -140,7 +139,7 @@ tsleep()
* getchar with timeout.
*/
int
-tgetchar()
+tgetchar(void)
{
static struct timeval timeleft;
char c;