From 37e8d540a9dcc082e3bd8d487fa6f97c3a8ea0a2 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Fri, 10 Jan 2003 04:18:32 +0000 Subject: [PATCH] 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. --- src/shknam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shknam.c b/src/shknam.c index 0b74fd858..7fcd6cb6f 100644 --- a/src/shknam.c +++ b/src/shknam.c @@ -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;