From 60030fd11e6c646dbc35c5254b2520d5af45288f Mon Sep 17 00:00:00 2001 From: dholland Date: Tue, 19 Jun 2012 05:30:43 +0000 Subject: WARNS=5 --- larn/display.c | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) (limited to 'larn/display.c') diff --git a/larn/display.c b/larn/display.c index e6f54b02..7d437495 100644 --- a/larn/display.c +++ b/larn/display.c @@ -1,9 +1,9 @@ -/* $NetBSD: display.c,v 1.9 2009/08/12 08:04:05 dholland Exp $ */ +/* $NetBSD: display.c,v 1.10 2012/06/19 05:30:43 dholland Exp $ */ /* display.c Larn is copyrighted 1986 by Noah Morgan. */ #include #ifndef lint -__RCSID("$NetBSD: display.c,v 1.9 2009/08/12 08:04:05 dholland Exp $"); +__RCSID("$NetBSD: display.c,v 1.10 2012/06/19 05:30:43 dholland Exp $"); #endif /* not lint */ #include "header.h" @@ -26,26 +26,26 @@ static char always = 0; now for the bottom line of the display */ void -bottomline() +bottomline(void) { recalc(); bot1f = 1; } void -bottomhp() +bottomhp(void) { bot2f = 1; } void -bottomspell() +bottomspell(void) { bot3f = 1; } void -bottomdo() +bottomdo(void) { if (bot1f) { bot3f = bot1f = bot2f = 0; @@ -63,7 +63,7 @@ bottomdo() } void -bot_linex() +bot_linex(void) { int i; if (cbak[SPELLS] <= -50 || (always)) { @@ -142,7 +142,7 @@ bot_linex() called from ogold() */ void -bottomgold() +bottomgold(void) { botsub(makecode(GOLD, 69, 19), "%-6ld"); /* botsub(GOLD,"%-6ld",69,19); */ @@ -244,8 +244,7 @@ botsub(int idx, const char *str) static int d_xmin = 0, d_xmax = MAXX, d_ymin = 0, d_ymax = MAXY; void -draws(xmin, xmax, ymin, ymax) - int xmin, xmax, ymin, ymax; +draws(int xmin, int xmax, int ymin, int ymax) { int i, idx; if (xmin == 0 && xmax == MAXX) { /* clear section of screen as @@ -283,7 +282,7 @@ draws(xmin, xmax, ymin, ymax) u_char screen[MAXX][MAXY]; /* template for the screen */ static u_char d_flag; void -drawscreen() +drawscreen(void) { int i, j, kk; int lastx, lasty; /* variables used to optimize the @@ -376,8 +375,7 @@ drawscreen() subroutine to display a cell location on the screen */ void -showcell(x, y) - int x, y; +showcell(int x, int y) { int i, j, kk, mm; if (c[BLINDCOUNT]) @@ -441,8 +439,7 @@ showcell(x, y) used in godirect() in monster.c for missile weapons display */ void -show1cell(x, y) - int x, y; +show1cell(int x, int y) { if (c[BLINDCOUNT]) return; /* see nothing if blind */ @@ -475,7 +472,7 @@ show1cell(x, y) cursor values start from 1 up */ void -showplayer() +showplayer(void) { cursor(playerx + 1, playery + 1); oldx = playerx; @@ -494,8 +491,8 @@ showplayer() short diroffx[] = {0, 0, 1, 0, -1, 1, -1, 1, -1}; short diroffy[] = {0, 1, 0, -1, 0, -1, -1, 1, 1}; int -moveplayer(dir) - int dir; /* from = present room # direction = +moveplayer(int dir) + /* from = present room # direction = * [1-north] [2-east] [3-south] [4-west] * [5-northeast] [6-northwest] [7-southeast] * [8-southwest] if direction=0, don't @@ -550,8 +547,7 @@ moveplayer(dir) */ static int lincount, count; void -seemagic(arg) - int arg; +seemagic(int arg) { int i, number = 0; count = lincount = 0; -- cgit v1.2.3