summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/draw.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-01-28 03:23:29 +0000
committerdholland <dholland@NetBSD.org>2008-01-28 03:23:29 +0000
commit4c39d3d5d3a9a029eecd375d4c55d91ed234cc9c (patch)
tree18650ae36850c1da11197138ae67b983fdac2708 /hunt/huntd/draw.c
parent1855dcd4d2560ee6a85ee271e81ba19d567dd596 (diff)
downloadbsdgames-darwin-4c39d3d5d3a9a029eecd375d4c55d91ed234cc9c.tar.gz
bsdgames-darwin-4c39d3d5d3a9a029eecd375d4c55d91ed234cc9c.tar.zst
bsdgames-darwin-4c39d3d5d3a9a029eecd375d4c55d91ed234cc9c.zip
clean for WARNS=4
Diffstat (limited to 'hunt/huntd/draw.c')
-rw-r--r--hunt/huntd/draw.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/hunt/huntd/draw.c b/hunt/huntd/draw.c
index f7801fb5..2af7a2ad 100644
--- a/hunt/huntd/draw.c
+++ b/hunt/huntd/draw.c
@@ -1,4 +1,4 @@
-/* $NetBSD: draw.c,v 1.3 2003/06/11 12:00:22 wiz Exp $ */
+/* $NetBSD: draw.c,v 1.4 2008/01/28 03:23:29 dholland Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: draw.c,v 1.3 2003/06/11 12:00:22 wiz Exp $");
+__RCSID("$NetBSD: draw.c,v 1.4 2008/01/28 03:23:29 dholland Exp $");
#endif /* not lint */
# include "hunt.h"
@@ -262,13 +262,13 @@ check(pp, y, x)
PLAYER *pp;
int y, x;
{
- int index;
+ int indx;
int ch;
PLAYER *rpp;
- index = y * sizeof Maze[0] + x;
- ch = ((char *) Maze)[index];
- if (ch != ((char *) pp->p_maze)[index]) {
+ indx = y * sizeof Maze[0] + x;
+ ch = ((char *) Maze)[indx];
+ if (ch != ((char *) pp->p_maze)[indx]) {
rpp = pp;
cgoto(rpp, y, x);
if (x == rpp->p_x && y == rpp->p_y)
@@ -277,7 +277,7 @@ check(pp, y, x)
outch(rpp, player_sym(rpp, y, x));
else
outch(rpp, ch);
- ((char *) rpp->p_maze)[index] = ch;
+ ((char *) rpp->p_maze)[indx] = ch;
}
}
@@ -353,7 +353,7 @@ drawplayer(pp, draw)
void
message(pp, s)
PLAYER *pp;
- char *s;
+ const char *s;
{
cgoto(pp, HEIGHT, 0);
outstr(pp, s, strlen(s));