summaryrefslogtreecommitdiffstats
path: root/atc/graphics.c
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1998-11-10 13:43:30 +0000
committerhubertf <hubertf@NetBSD.org>1998-11-10 13:43:30 +0000
commit64e97658ba659a3c374b975c3262f10910904254 (patch)
tree2dcdc88c24142665bc69163b5c841365a606a872 /atc/graphics.c
parent7d7fd1d69fceb79900e4d597c5e2bdbad06d6cc0 (diff)
downloadbsdgames-darwin-64e97658ba659a3c374b975c3262f10910904254.tar.gz
bsdgames-darwin-64e97658ba659a3c374b975c3262f10910904254.tar.zst
bsdgames-darwin-64e97658ba659a3c374b975c3262f10910904254.zip
constify, per PR 6150 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'atc/graphics.c')
-rw-r--r--atc/graphics.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/atc/graphics.c b/atc/graphics.c
index 6e4ec80c..f95cf0de 100644
--- a/atc/graphics.c
+++ b/atc/graphics.c
@@ -1,4 +1,4 @@
-/* $NetBSD: graphics.c,v 1.4 1997/10/10 02:07:11 lukem Exp $ */
+/* $NetBSD: graphics.c,v 1.5 1998/11/10 13:43:30 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)graphics.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: graphics.c,v 1.4 1997/10/10 02:07:11 lukem Exp $");
+__RCSID("$NetBSD: graphics.c,v 1.5 1998/11/10 13:43:30 hubertf Exp $");
#endif
#endif /* not lint */
@@ -130,10 +130,11 @@ init_gr()
void
setup_screen(scp)
- C_SCREEN *scp;
+ const C_SCREEN *scp;
{
int i, j;
- char str[3], *airstr;
+ char str[3];
+ const char *airstr;
str[2] = '\0';
@@ -224,7 +225,7 @@ void
draw_line(w, x, y, lx, ly, s)
WINDOW *w;
int x, y, lx, ly;
- char *s;
+ const char *s;
{
int dx, dy;
@@ -262,7 +263,7 @@ iomove(pos)
void
ioaddstr(pos, str)
int pos;
- char *str;
+ const char *str;
{
wmove(input, 0, pos);
waddstr(input, str);
@@ -281,7 +282,7 @@ ioclrtobot()
void
ioerror(pos, len, str)
int pos, len;
- char *str;
+ const char *str;
{
int i;
@@ -380,8 +381,8 @@ planewin()
void
loser(p, s)
- PLANE *p;
- char *s;
+ const PLANE *p;
+ const char *s;
{
int c;
#ifdef BSD