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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user