summaryrefslogtreecommitdiffstats
path: root/hack
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-06-07 20:31:10 +0000
committerdholland <dholland@NetBSD.org>2009-06-07 20:31:10 +0000
commit84d25b7fc1866e662d07f1e5d4b17f13c8547fc9 (patch)
tree1cee5e728923e7f73c1ecbdb07c758b091c8b9cb /hack
parent0d5d02de73084ecd81eecbe5a79ffe73c6e59de4 (diff)
downloadbsdgames-darwin-84d25b7fc1866e662d07f1e5d4b17f13c8547fc9.tar.gz
bsdgames-darwin-84d25b7fc1866e662d07f1e5d4b17f13c8547fc9.tar.zst
bsdgames-darwin-84d25b7fc1866e662d07f1e5d4b17f13c8547fc9.zip
sprinkle some more const
Diffstat (limited to 'hack')
-rw-r--r--hack/hack.Decl.c6
-rw-r--r--hack/hack.fight.c6
-rw-r--r--hack/hack.h6
3 files changed, 9 insertions, 9 deletions
diff --git a/hack/hack.Decl.c b/hack/hack.Decl.c
index 9166f5ea..69bd0691 100644
--- a/hack/hack.Decl.c
+++ b/hack/hack.Decl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.Decl.c,v 1.6 2003/04/02 18:36:35 jsm Exp $ */
+/* $NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,11 +63,11 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.Decl.c,v 1.6 2003/04/02 18:36:35 jsm Exp $");
+__RCSID("$NetBSD: hack.Decl.c,v 1.7 2009/06/07 20:31:10 dholland Exp $");
#endif /* not lint */
#include "hack.h"
-char nul[40]; /* contains zeros */
+const char nul[40]; /* contains zeros */
char plname[PL_NSIZ];/* player name */
char lock[PL_NSIZ + 4] = "1lock"; /* long enough for login name
* .99 */
diff --git a/hack/hack.fight.c b/hack/hack.fight.c
index 33dd6010..7cc75159 100644
--- a/hack/hack.fight.c
+++ b/hack/hack.fight.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.fight.c,v 1.10 2009/06/07 20:13:18 dholland Exp $ */
+/* $NetBSD: hack.fight.c,v 1.11 2009/06/07 20:31:10 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.fight.c,v 1.10 2009/06/07 20:13:18 dholland Exp $");
+__RCSID("$NetBSD: hack.fight.c,v 1.11 2009/06/07 20:31:10 dholland Exp $");
#endif /* not lint */
#include "hack.h"
@@ -209,7 +209,7 @@ thitu(int tlev, int dam, const char *name)
}
}
-char mlarge[] = "bCDdegIlmnoPSsTUwY',&";
+const char mlarge[] = "bCDdegIlmnoPSsTUwY',&";
/* return TRUE if mon still alive */
boolean
diff --git a/hack/hack.h b/hack/hack.h
index 9ca5d821..074fbbfb 100644
--- a/hack/hack.h
+++ b/hack/hack.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.h,v 1.10 2004/01/27 20:30:29 jsm Exp $ */
+/* $NetBSD: hack.h,v 1.11 2009/06/07 20:31:10 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -203,9 +203,9 @@ extern char SAVEF[];
extern char fut_geno[60]; /* idem */
extern char genocided[60]; /* defined in Decl.c */
extern char lock[];
-extern char mlarge[];
+extern const char mlarge[];
extern char morc;
-extern char nul[];
+extern const char nul[];
extern char plname[PL_NSIZ], pl_character[PL_CSIZ];
extern const char quitchars[];
extern char sdir[]; /* defined in hack.c */