From 84d25b7fc1866e662d07f1e5d4b17f13c8547fc9 Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 7 Jun 2009 20:31:10 +0000 Subject: sprinkle some more const --- hack/hack.Decl.c | 6 +++--- hack/hack.fight.c | 6 +++--- hack/hack.h | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'hack') 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 #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 #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 */ -- cgit v1.2.3-56-ge451