]> granicus.if.org Git - nethack/commitdiff
another pre-ANSI bit
authornethack.rankin <nethack.rankin>
Fri, 10 Jan 2003 04:18:32 +0000 (04:18 +0000)
committernethack.rankin <nethack.rankin>
Fri, 10 Jan 2003 04:18:32 +0000 (04:18 +0000)
     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

index 0b74fd858c1be49efd00c509ca82e6ff1c280f72..7fcd6cb6f6afb8a597ff2f66f3c23e6b1f849884 100644 (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;