diff options
author | dholland <dholland@NetBSD.org> | 2009-08-12 07:28:40 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-08-12 07:28:40 +0000 |
commit | 8b1c71ee649fb41155da92995044e451c39ea700 (patch) | |
tree | 24e74c8d453828689bfeac45e6162912f3c42d76 /hack/hack.do_wear.c | |
parent | 31f496067cd42ce5ff71163efa5921ab6522e4aa (diff) | |
download | bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.gz bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.zst bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.zip |
sprinkle static
Diffstat (limited to 'hack/hack.do_wear.c')
-rw-r--r-- | hack/hack.do_wear.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/hack/hack.do_wear.c b/hack/hack.do_wear.c index 6b0ffd1f..35e794a0 100644 --- a/hack/hack.do_wear.c +++ b/hack/hack.do_wear.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.do_wear.c,v 1.6 2009/06/07 18:30:39 dholland Exp $ */ +/* $NetBSD: hack.do_wear.c,v 1.7 2009/08/12 07:28:40 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,13 +63,16 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.do_wear.c,v 1.6 2009/06/07 18:30:39 dholland Exp $"); +__RCSID("$NetBSD: hack.do_wear.c,v 1.7 2009/08/12 07:28:40 dholland Exp $"); #endif /* not lint */ #include "hack.h" #include "extern.h" -void +static int dorr(struct obj *); +static int cursed(struct obj *); + +static void off_msg(struct obj *otmp) { pline("You were wearing %s.", doname(otmp)); @@ -136,7 +139,7 @@ doremring(void) return (0); } -int +static int dorr(struct obj *otmp) { if (cursed(otmp)) @@ -146,7 +149,7 @@ dorr(struct obj *otmp) return (1); } -int +static int cursed(struct obj *otmp) { if (otmp->cursed) { |