summaryrefslogtreecommitdiffstats
path: root/larn/movem.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-01-28 05:38:53 +0000
committerdholland <dholland@NetBSD.org>2008-01-28 05:38:53 +0000
commite30950ccc7c7c31c69f1d31c16b0212bbf168ceb (patch)
tree2db2120a69bedac57d95d284e878f9975b6a17ed /larn/movem.c
parent9005237a04850abb22afe099ef07649b4115ed3f (diff)
downloadbsdgames-darwin-e30950ccc7c7c31c69f1d31c16b0212bbf168ceb.tar.gz
bsdgames-darwin-e30950ccc7c7c31c69f1d31c16b0212bbf168ceb.tar.zst
bsdgames-darwin-e30950ccc7c7c31c69f1d31c16b0212bbf168ceb.zip
Larn now builds with WARNS=4.
Diffstat (limited to 'larn/movem.c')
-rw-r--r--larn/movem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/larn/movem.c b/larn/movem.c
index 55a3d27b..99336abe 100644
--- a/larn/movem.c
+++ b/larn/movem.c
@@ -1,4 +1,4 @@
-/* $NetBSD: movem.c,v 1.5 1997/10/18 20:03:34 christos Exp $ */
+/* $NetBSD: movem.c,v 1.6 2008/01/28 05:38:54 dholland Exp $ */
/*
* movem.c (move monster) Larn is copyrighted 1986 by Noah Morgan.
@@ -12,7 +12,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: movem.c,v 1.5 1997/10/18 20:03:34 christos Exp $");
+__RCSID("$NetBSD: movem.c,v 1.6 2008/01/28 05:38:54 dholland Exp $");
#endif /* not lint */
#include "header.h"
@@ -274,7 +274,8 @@ mmove(aa, bb, cc, dd)
int aa, bb, cc, dd;
{
int tmp, i, flag;
- char *who = NULL, *p;
+ const char *who = NULL, *p;
+
flag = 0; /* set to 1 if monster hit by arrow trap */
if ((cc == playerx) && (dd == playery)) {
hitplayer(aa, bb);