From a77b3f8edc13dc6efdbcf80e336689cfa1de08ab Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 12 Oct 1997 17:45:06 +0000 Subject: WARNSify --- monop/spec.c | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'monop/spec.c') diff --git a/monop/spec.c b/monop/spec.c index 5b8f32e1..b5f68395 100644 --- a/monop/spec.c +++ b/monop/spec.c @@ -1,4 +1,4 @@ -/* $NetBSD: spec.c,v 1.3 1995/03/23 08:35:16 cgd Exp $ */ +/* $NetBSD: spec.c,v 1.4 1997/10/12 17:45:26 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -33,11 +33,12 @@ * SUCH DAMAGE. */ +#include #ifndef lint #if 0 static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: spec.c,v 1.3 1995/03/23 08:35:16 cgd Exp $"; +__RCSID("$NetBSD: spec.c,v 1.4 1997/10/12 17:45:26 christos Exp $"); #endif #endif /* not lint */ @@ -47,9 +48,11 @@ static char *perc[] = { "10%", "ten percent", "%", "$200", "200", 0 }; -inc_tax() { /* collect income tax */ +void +inc_tax() +{ /* collect income tax */ - reg int worth, com_num; + int worth, com_num; com_num = getinp("Do you wish to lose 10%% of your total worth or $200? ", perc); worth = cur_p->money + prop_worth(cur_p); @@ -73,20 +76,32 @@ inc_tax() { /* collect income tax */ if (worth == 200) lucky("\nIt makes no difference! "); } -goto_jail() { /* move player to jail */ + +void +goto_jail() +{ /* move player to jail */ cur_p->loc = JAIL; } -lux_tax() { /* landing on luxury tax */ + +void +lux_tax() +{ /* landing on luxury tax */ printf("You lose $75\n"); cur_p->money -= 75; } -cc() { /* draw community chest card */ + +void +cc() +{ /* draw community chest card */ get_card(&CC_D); } -chance() { /* draw chance card */ + +void +chance() +{ /* draw chance card */ get_card(&CH_D); } -- cgit v1.2.3-56-ge451