summaryrefslogtreecommitdiffstats
path: root/hack/hack.apply.c
diff options
context:
space:
mode:
Diffstat (limited to 'hack/hack.apply.c')
-rw-r--r--hack/hack.apply.c40
1 files changed, 15 insertions, 25 deletions
diff --git a/hack/hack.apply.c b/hack/hack.apply.c
index 6c119503..ef8ce2aa 100644
--- a/hack/hack.apply.c
+++ b/hack/hack.apply.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.apply.c,v 1.9 2007/12/15 19:44:41 perry Exp $ */
+/* $NetBSD: hack.apply.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.apply.c,v 1.9 2007/12/15 19:44:41 perry Exp $");
+__RCSID("$NetBSD: hack.apply.c,v 1.10 2009/06/07 18:30:39 dholland Exp $");
#endif /* not lint */
#include "hack.h"
@@ -83,7 +83,7 @@ static int dig(void);
static int use_pick_axe(struct obj *);
int
-doapply()
+doapply(void)
{
struct obj *obj;
int res = 1;
@@ -136,8 +136,7 @@ xit:
/* ARGSUSED */
static void
-use_camera(obj) /* */
- struct obj *obj __unused;
+use_camera(struct obj *obj __unused)
{
struct monst *mtmp;
if (!getdir(1)) { /* ask: in what direction? */
@@ -187,8 +186,7 @@ static
struct obj *current_ice_box;/* a local variable of use_ice_box, to be
* used by its local procedures in/ck_ice_box */
static int
-in_ice_box(obj)
- struct obj *obj;
+in_ice_box(struct obj *obj)
{
if (obj == current_ice_box ||
(Punished && (obj == uball || obj == uchain))) {
@@ -220,15 +218,13 @@ in_ice_box(obj)
}
static int
-ck_ice_box(obj)
- struct obj *obj;
+ck_ice_box(struct obj *obj)
{
return (obj->o_cnt_id == current_ice_box->o_id);
}
static int
-out_ice_box(obj)
- struct obj *obj;
+out_ice_box(struct obj *obj)
{
struct obj *otmp;
if (obj == fcobj)
@@ -246,8 +242,7 @@ out_ice_box(obj)
}
static void
-use_ice_box(obj)
- struct obj *obj;
+use_ice_box(struct obj *obj)
{
int cnt = 0;
struct obj *otmp;
@@ -273,9 +268,7 @@ use_ice_box(obj)
}
static struct monst *
-bchit(ddx, ddy, range, sym)
- int ddx, ddy, range;
- char sym;
+bchit(int ddx, int ddy, int range, int sym)
{
struct monst *mtmp = (struct monst *) 0;
int bchx = u.ux, bchy = u.uy;
@@ -302,8 +295,7 @@ bchit(ddx, ddy, range, sym)
/* ARGSUSED */
static void
-use_whistle(obj)
- struct obj *obj __unused;
+use_whistle(struct obj *obj __unused)
{
struct monst *mtmp = fmon;
pline("You produce a high whistling sound.");
@@ -320,8 +312,7 @@ use_whistle(obj)
/* ARGSUSED */
static void
-use_magic_whistle(obj)
- struct obj *obj __unused;
+use_magic_whistle(struct obj *obj __unused)
{
struct monst *mtmp = fmon;
pline("You produce a strange whistling sound.");
@@ -338,7 +329,7 @@ static coord dig_pos;
static boolean dig_down;
static int
-dig()
+dig(void)
{
struct rm *lev;
int dpx = dig_pos.x, dpy = dig_pos.y;
@@ -410,13 +401,13 @@ dig()
/* When will hole be finished? Very rough indication used by shopkeeper. */
int
-holetime()
+holetime(void)
{
return ((occupation == dig) ? (250 - dig_effort) / 20 : -1);
}
void
-dighole()
+dighole(void)
{
struct trap *ttmp = t_at(u.ux, u.uy);
@@ -443,8 +434,7 @@ dighole()
}
static int
-use_pick_axe(obj)
- struct obj *obj;
+use_pick_axe(struct obj *obj)
{
char dirsyms[12];
char *dsp = dirsyms, *sdp = sdir;