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

@@ -37,7 +37,7 @@ take_gold()
int
dosit()
{
static const char *sit_message = "sit on the %s.";
static const char sit_message[] = "sit on the %s.";
register struct trap *trap;
register int typ = levl[u.ux][u.uy].typ;
@@ -312,7 +312,7 @@ rndcurse() /* curse a few inventory items at random! */
int nobj = 0;
int cnt, onum;
struct obj *otmp;
static const char *mal_aura = "feel a malignant aura surround %s.";
static const char mal_aura[] = "feel a malignant aura surround %s.";
if (uwep && (uwep->oartifact == ART_MAGICBANE) && rn2(20)) {
You(mal_aura, "the magic-absorbing blade");