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/input.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tetris/input.c') 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; -- cgit v1.2.3