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

@@ -410,7 +410,7 @@ cleanup:
digging.level.dlevel = -1;
return(0);
} else { /* not enough effort has been spent yet */
static const char *d_target[6] = {
static const char *const d_target[6] = {
"", "rock", "statue", "boulder", "door", "tree"
};
int dig_target = dig_typ(uwep, dpx, dpy);
@@ -923,7 +923,7 @@ struct obj *obj;
You("swing your %s through thin air.",
aobjnam(obj, (char *)0));
} else {
static const char *d_action[6] = {
static const char * const d_action[6] = {
"swinging",
"digging",
"chipping the statue",