]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - rogue/inventory.c
Fix merge conflicts
[bsdgames-darwin.git] / rogue / inventory.c
index b1bc1595bce4377e2471c1340277eb44cb8b8e0e..934e8aa3f5fd4fa011af791686121336d4c744fb 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: inventory.c,v 1.13 2008/01/14 03:50:01 dholland Exp $  */
+/*     $NetBSD: inventory.c,v 1.15 2011/08/26 06:18:17 dholland Exp $  */
 
 /*
  * Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)inventory.c        8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: inventory.c,v 1.13 2008/01/14 03:50:01 dholland Exp $");
+__RCSID("$NetBSD: inventory.c,v 1.15 2011/08/26 06:18:17 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -211,6 +211,10 @@ static const struct id_com_s com_id_tab[COMS] = {
        {'q',   "q       quaff potion" }
 };
 
+static int get_com_id(int *, short);
+static int pr_com_id(int);
+static int pr_motion_char(int);
+
 void
 inventory(const object *pack, unsigned short mask)
 {
@@ -355,7 +359,7 @@ MORE:
        }
 }
 
-int
+static int
 pr_com_id(int ch)
 {
        int i;
@@ -368,7 +372,7 @@ pr_com_id(int ch)
        return(1);
 }
 
-int
+static int
 get_com_id(int *indexp, short ch)
 {
        short i;
@@ -382,7 +386,7 @@ get_com_id(int *indexp, short ch)
        return(0);
 }
 
-int
+static int
 pr_motion_char(int ch)
 {
        if (    (ch == 'J') ||
@@ -466,8 +470,7 @@ struct sbuf {
 
 static void sbuf_init(struct sbuf *s, char *buf, size_t maxlen);
 static void sbuf_addstr(struct sbuf *s, const char *str);
-static void sbuf_addf(struct sbuf *s, const char *fmt, ...)
-       __attribute__((__format__(__printf__, 2, 3)));
+static void sbuf_addf(struct sbuf *s, const char *fmt, ...) __printflike(2,3);
 static void desc_count(struct sbuf *s, int n);
 static void desc_called(struct sbuf *s, const object *);