]> granicus.if.org Git - nethack/commitdiff
(from Steve VanDevender)
authornethack.allison <nethack.allison>
Thu, 24 Jan 2002 23:40:58 +0000 (23:40 +0000)
committernethack.allison <nethack.allison>
Thu, 24 Jan 2002 23:40:58 +0000 (23:40 +0000)
Not using FDECL to declare the prototype for dogmove.c:can_reach_food()
causes the Digital UNIX C compiler to throw a prototype mismatch error
when compiling dogmove.c.

src/dogmove.c

index ed2236062bf3c1a86425d4fff38c2e13a8c14618..1aa2a5766b9a8c85d225a27c8e8546bfd6f80702 100644 (file)
@@ -16,8 +16,8 @@ STATIC_DCL int FDECL(dog_invent,(struct monst *,struct edog *,int));
 STATIC_DCL int FDECL(dog_goal,(struct monst *,struct edog *,int,int,int));
 
 STATIC_DCL struct obj *FDECL(DROPPABLES, (struct monst *));
-STATIC_DCL boolean can_reach_food(struct monst *,XCHAR_P,XCHAR_P,XCHAR_P,
-    XCHAR_P);
+STATIC_DCL boolean FDECL(can_reach_food,(struct monst *,XCHAR_P,XCHAR_P,XCHAR_P,
+    XCHAR_P));
 
 STATIC_OVL struct obj *
 DROPPABLES(mon)