Make this compile with gcc40: Move function prototypes from function scope
authorSimon Schubert <corecode@dragonflybsd.org>
Sat, 7 May 2005 18:03:39 +0000 (18:03 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Sat, 7 May 2005 18:03:39 +0000 (18:03 +0000)
to file scope.

games/hack/hack.shk.c

index a4d4478..b2fd5d7 100644 (file)
@@ -1,7 +1,7 @@
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* hack.shk.c - version 1.0.3 */
 /* $FreeBSD: src/games/hack/hack.shk.c,v 1.5 1999/11/16 10:26:37 marcel Exp $ */
-/* $DragonFly: src/games/hack/hack.shk.c,v 1.3 2004/11/06 12:29:17 eirikn Exp $ */
+/* $DragonFly: src/games/hack/hack.shk.c,v 1.4 2005/05/07 18:03:39 corecode Exp $ */
 
 #include "hack.h"
 #ifdef QUEST
@@ -132,11 +132,11 @@ struct bill_x *bp = bill;
        }
 }
 
+static void findshk(int);
+
 inshop(){
 int roomno = inroom(u.ux,u.uy);
 
-       static void findshk();
-
        /* Did we just leave a shop? */
        if(u.uinshop &&
            (u.uinshop != roomno + 1 || shlevel != dlevel || !shopkeeper)) {
@@ -309,14 +309,14 @@ struct monst *shkp;
        }
 }
 
+static int dopayobj(struct bill_x *);
+
 dopay(){
 long ltmp;
 struct bill_x *bp;
 struct monst *shkp;
 int pass, tmp;
 
-       static int dopayobj();
-
        multi = 0;
        (void) inshop();
        for(shkp = fmon; shkp; shkp = shkp->nmon)
@@ -693,11 +693,11 @@ quit:
        return(0);
 }
 
+static int realhunger(void);
+
 static
 getprice(obj) struct obj *obj; {
 int tmp, ac;
-       static int realhunger();
-
        switch(obj->olet){
        case AMULET_SYM:
                tmp = 10*rnd(500);