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/screen.c | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to 'tetris/screen.c') diff --git a/tetris/screen.c b/tetris/screen.c index ffb57bb4..edbcddf9 100644 --- a/tetris/screen.c +++ b/tetris/screen.c @@ -1,4 +1,4 @@ -/* $NetBSD: screen.c,v 1.22 2008/01/28 01:38:59 dholland Exp $ */ +/* $NetBSD: screen.c,v 1.23 2009/05/25 04:33:53 dholland Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -123,8 +123,7 @@ static struct tinfo *info; * Routine used by tputs(). */ int -put(c) - int c; +put(int c) { return (putchar(c)); @@ -150,7 +149,7 @@ moveto(int r, int c) * Set up from termcap. */ void -scr_init() +scr_init(void) { static int bsflag, xsflag, sgnum; #ifdef unneeded @@ -217,8 +216,7 @@ scr_init() static jmp_buf scr_onstop; static void -stopset(sig) - int sig; +stopset(int sig) { sigset_t set; @@ -231,8 +229,7 @@ stopset(sig) } static void -scr_stop(sig) - int sig; +scr_stop(int sig) { sigset_t set; @@ -249,7 +246,7 @@ scr_stop(sig) * Set up screen mode. */ void -scr_set() +scr_set(void) { struct winsize ws; struct termios newtt; @@ -316,7 +313,7 @@ scr_set() * End screen mode. */ void -scr_end() +scr_end(void) { sigset_t nsigset, osigset; @@ -341,8 +338,7 @@ scr_end() } void -stop(why) - const char *why; +stop(const char *why) { if (isset) @@ -355,7 +351,7 @@ stop(why) * Clear the screen, forgetting the current contents in the process. */ void -scr_clear() +scr_clear(void) { putpad(CLstr); @@ -373,7 +369,7 @@ typedef cell regcell; * Update the screen. */ void -scr_update() +scr_update(void) { cell *bp, *sp; regcell so, cur_so = 0; @@ -485,9 +481,7 @@ scr_update() * (We need its length in case we have to overwrite with blanks.) */ void -scr_msg(s, set) - char *s; - int set; +scr_msg(char *s, int set) { if (set || CEstr == NULL) { -- cgit v1.2.3