From: Simon Schubert Date: Sat, 7 May 2005 18:03:39 +0000 (+0000) Subject: Make this compile with gcc40: Move function prototypes from function scope X-Git-Tag: v2.0.1~7458 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/b9613237376b19c76266155cf6a152c59331d2a0 Make this compile with gcc40: Move function prototypes from function scope to file scope. --- diff --git a/games/hack/hack.shk.c b/games/hack/hack.shk.c index a4d44786fb..b2fd5d75c7 100644 --- a/games/hack/hack.shk.c +++ b/games/hack/hack.shk.c @@ -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);