diff options
Diffstat (limited to 'hack/hack.wield.c')
-rw-r--r-- | hack/hack.wield.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/hack/hack.wield.c b/hack/hack.wield.c index 37ebcb03..7dd1e161 100644 --- a/hack/hack.wield.c +++ b/hack/hack.wield.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.wield.c,v 1.6 2003/04/02 18:36:41 jsm Exp $ */ +/* $NetBSD: hack.wield.c,v 1.7 2009/06/07 18:30:39 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,21 +63,20 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.wield.c,v 1.6 2003/04/02 18:36:41 jsm Exp $"); +__RCSID("$NetBSD: hack.wield.c,v 1.7 2009/06/07 18:30:39 dholland Exp $"); #endif /* not lint */ #include "hack.h" #include "extern.h" void -setuwep(obj) - struct obj *obj; +setuwep(struct obj *obj) { setworn(obj, W_WEP); } int -dowield() +dowield(void) { struct obj *wep; int res = 0; @@ -116,7 +115,7 @@ dowield() } void -corrode_weapon() +corrode_weapon(void) { if (!uwep || uwep->olet != WEAPON_SYM) return; /* %% */ @@ -129,9 +128,7 @@ corrode_weapon() } int -chwepon(otmp, amount) - struct obj *otmp; - int amount; +chwepon(struct obj *otmp, int amount) { const char *color = (amount < 0) ? "black" : "green"; const char *time; |