summaryrefslogtreecommitdiff
path: root/games/hack/hack.u_init.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-06-07 18:30:39 +0000
committerdholland <dholland@NetBSD.org>2009-06-07 18:30:39 +0000
commit1fa8a9a633c6f43b2e4cc46b520a81da0c53b6da (patch)
treeb0f7681d34d87154ea94fbb1cb475330e7b76e57 /games/hack/hack.u_init.c
parent57aadb4062ffaba26b131457aac1da14d2b4a16d (diff)
ANSIfy function declarations. All object file diffs inspected.
Diffstat (limited to 'games/hack/hack.u_init.c')
-rw-r--r--games/hack/hack.u_init.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/games/hack/hack.u_init.c b/games/hack/hack.u_init.c
index de2fbfb0ad5..28d3fc4078a 100644
--- a/games/hack/hack.u_init.c
+++ b/games/hack/hack.u_init.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.u_init.c,v 1.9 2008/01/28 06:55:42 dholland Exp $ */
+/* $NetBSD: hack.u_init.c,v 1.10 2009/06/07 18:30:39 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.u_init.c,v 1.9 2008/01/28 06:55:42 dholland Exp $");
+__RCSID("$NetBSD: hack.u_init.c,v 1.10 2009/06/07 18:30:39 dholland Exp $");
#endif /* not lint */
#include <ctype.h>
@@ -158,7 +158,7 @@ struct trobj Wizard[] = {
};
void
-u_init()
+u_init(void)
{
int i;
char exper = 'y', pc;
@@ -326,8 +326,7 @@ got_suffix:
}
void
-ini_inv(trop)
- struct trobj *trop;
+ini_inv(struct trobj *trop)
{
struct obj *obj;
while (trop->trolet) {
@@ -389,7 +388,7 @@ ini_inv(trop)
#ifdef WIZARD
void
-wiz_inv()
+wiz_inv(void)
{
struct trobj *trop = &Extra_objs[0];
char *ep = getenv("INVENT");
@@ -420,7 +419,7 @@ wiz_inv()
#endif /* WIZARD */
void
-plnamesuffix()
+plnamesuffix(void)
{
char *p;
if ((p = strrchr(plname, '-')) != NULL) {
@@ -435,8 +434,7 @@ plnamesuffix()
}
int
-role_index(pc)
- char pc;
+role_index(int pc)
{ /* must be called only from u_init() */
/* so that rolesyms[] is defined */
char *cp;