summaryrefslogtreecommitdiffstats
path: root/hack
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-06-07 21:04:54 +0000
committerdholland <dholland@NetBSD.org>2009-06-07 21:04:54 +0000
commit8e0bc1dda8fbdb3cb6a9635d807371519347a3ba (patch)
treef7a7af9a59bd1d29e69218fd138fee4634885504 /hack
parent84d25b7fc1866e662d07f1e5d4b17f13c8547fc9 (diff)
downloadbsdgames-darwin-8e0bc1dda8fbdb3cb6a9635d807371519347a3ba.tar.gz
bsdgames-darwin-8e0bc1dda8fbdb3cb6a9635d807371519347a3ba.tar.zst
bsdgames-darwin-8e0bc1dda8fbdb3cb6a9635d807371519347a3ba.zip
a bit more const
Diffstat (limited to 'hack')
-rw-r--r--hack/hack.Decl.c6
-rw-r--r--hack/hack.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/hack/hack.Decl.c b/hack/hack.Decl.c
index 69bd0691..45e1108c 100644
--- a/hack/hack.Decl.c
+++ b/hack/hack.Decl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $ */
+/* $NetBSD: hack.Decl.c,v 1.8 2009/06/07 21:04:54 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $");
+__RCSID("$NetBSD: hack.Decl.c,v 1.8 2009/06/07 21:04:54 dholland Exp $");
#endif /* not lint */
#include "hack.h"
@@ -92,7 +92,7 @@ struct monst youmonst; /* dummy; used as return value for boomhit */
xchar dlevel = 1;
xchar xupstair, yupstair, xdnstair, ydnstair;
-char *save_cm = 0;
+const char *save_cm = NULL;
const char *killer, *nomovemsg;
long moves = 1;
diff --git a/hack/hack.h b/hack/hack.h
index 074fbbfb..825daa72 100644
--- a/hack/hack.h
+++ b/hack/hack.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.h,v 1.11 2009/06/07 20:31:10 dholland Exp $ */
+/* $NetBSD: hack.h,v 1.12 2009/06/07 21:04:54 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -196,7 +196,7 @@ extern char *hname;
extern const char *const hu_stat[]; /* in eat.c */
extern const char *nomovemsg;
extern const char *occtxt;
-extern char *save_cm;
+extern const char *save_cm;
extern const char *killer;
extern const char *const traps[];
extern char SAVEF[];