string constants

<Someone> wrote:
> Linux, Redhat 7.1 nethack 3.4.0
>
>Please see attached patch file.
>
>I'm attempting to move more stuff into the "read-only" area, in
>preparation for a port to another OS.
This commit is contained in:
nethack.allison
2002-08-20 08:05:20 +00:00
parent ab63d7830e
commit fc319a4be0
27 changed files with 128 additions and 128 deletions

View File

@@ -876,7 +876,7 @@ int dieroll; /* needed for Magicbane and vorpal blades */
}
if (youdefend || mdef->mhp > 0) { /* ??? -dkh- */
static const char *mb_verb[4] =
static const char * const mb_verb[4] =
{"probe", "stun", "scare", "purge"};
if (youattack || youdefend || vis) {
@@ -987,7 +987,7 @@ int dieroll; /* needed for Magicbane and vorpal blades */
}
} else if (otmp->oartifact == ART_VORPAL_BLADE &&
(dieroll == 1 || mdef->data == &mons[PM_JABBERWOCK])) {
static const char *behead_msg[2] = {
static const char * const behead_msg[2] = {
"%s beheads %s!",
"%s decapitates %s!"
};