]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - hack/hack.read.c
Fix various format string mismatches.
[bsdgames-darwin.git] / hack / hack.read.c
index e224a437a6a6ccb51b79547c971c716b4911bbbf..27890e2f3d6cf94857f7e8b448b30b3766b03302 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.read.c,v 1.9 2009/06/07 18:30:39 dholland Exp $   */
+/*     $NetBSD: hack.read.c,v 1.11 2011/08/06 20:29:37 dholland Exp $  */
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hack.read.c,v 1.9 2009/06/07 18:30:39 dholland Exp $");
+__RCSID("$NetBSD: hack.read.c,v 1.11 2011/08/06 20:29:37 dholland Exp $");
 #endif                         /* not lint */
 
 #include <stdlib.h>
 #include "hack.h"
 #include "extern.h"
 
+static int identify(struct obj *);
+static int monstersym(int);
+
 int
 doread(void)
 {
@@ -200,7 +203,7 @@ doread(void)
                                Punished = 0;
                                freeobj(uchain);
                                unpobj(uchain);
-                               free((char *) uchain);
+                               free(uchain);
                                uball->spe = 0;
                                uball->owornmask &= ~W_BALL;
                                uchain = uball = (struct obj *) 0;
@@ -527,7 +530,7 @@ doread(void)
        return (1);
 }
 
-int
+static int
 identify(struct obj *otmp)             /* also called by newmail() */
 {
        objects[otmp->otyp].oc_name_known = 1;
@@ -624,7 +627,7 @@ do_it:
 }
 
 /* Test whether we may genocide all monsters with symbol  ch  */
-int
+static int
 monstersym(int ch)             /* arnold@ucsfcgl */
 {
        const struct permonst *mp;