another pre-ANSI bit

Another vintage compiler (not as old as the previous one...) didn't
like the assignment `nlp = shkgeneral;' when nlp had been declared using
array syntax.  It didn't used to mind that, until an extra `const' was
inserted by the "move stuff to read-only area" patch submitted by someone
a while back.  The prototype is already using pointer syntax here.
This commit is contained in:
nethack.rankin
2003-01-10 04:18:32 +00:00
parent c34d7af1eb
commit 37e8d540a9

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)shknam.c 3.4 2001/09/06 */
/* SCCS Id: @(#)shknam.c 3.4 2003/01/09 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -271,7 +271,7 @@ int sx, sy;
STATIC_OVL void
nameshk(shk, nlp)
struct monst *shk;
const char * const nlp[];
const char * const *nlp;
{
int i, trycnt, names_avail;
const char *shname = 0;