summaryrefslogtreecommitdiffstats
path: root/rogue/inventory.c
diff options
context:
space:
mode:
authortron <tron@NetBSD.org>2002-07-07 09:35:07 +0000
committertron <tron@NetBSD.org>2002-07-07 09:35:07 +0000
commitccc05ba3f3d43577640203ebe811128249f7f6e8 (patch)
treeace137b3ba5c2f75f5b419c29e5f9356f7322977 /rogue/inventory.c
parentfc6e23b8f2a9e7c87ec39c79245fe61d0b4d0bb8 (diff)
downloadbsdgames-darwin-ccc05ba3f3d43577640203ebe811128249f7f6e8.tar.gz
bsdgames-darwin-ccc05ba3f3d43577640203ebe811128249f7f6e8.zip
Make "rogue" build with "WARNS=2". The necessary patches were supplied
by David A. Holland in PR bin/17498.
Diffstat (limited to 'rogue/inventory.c')
-rw-r--r--rogue/inventory.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rogue/inventory.c b/rogue/inventory.c
index c68f2c34..1293765d 100644
--- a/rogue/inventory.c
+++ b/rogue/inventory.c
@@ -1,4 +1,4 @@
-/* $NetBSD: inventory.c,v 1.6 1998/11/10 13:01:32 hubertf Exp $ */
+/* $NetBSD: inventory.c,v 1.7 2002/07/07 09:35:08 tron Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)inventory.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: inventory.c,v 1.6 1998/11/10 13:01:32 hubertf Exp $");
+__RCSID("$NetBSD: inventory.c,v 1.7 2002/07/07 09:35:08 tron Exp $");
#endif
#endif /* not lint */
@@ -362,15 +362,15 @@ pr_com_id(ch)
}
int
-get_com_id(index, ch)
- int *index;
+get_com_id(indexp, ch)
+ int *indexp;
short ch;
{
short i;
for (i = 0; i < COMS; i++) {
if (com_id_tab[i].com_char == ch) {
- *index = i;
+ *indexp = i;
return(1);
}
}