From a77b3f8edc13dc6efdbcf80e336689cfa1de08ab Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 12 Oct 1997 17:45:06 +0000 Subject: WARNSify --- monop/jail.c | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'monop/jail.c') diff --git a/monop/jail.c b/monop/jail.c index 06055315..8c03e9bf 100644 --- a/monop/jail.c +++ b/monop/jail.c @@ -1,4 +1,4 @@ -/* $NetBSD: jail.c,v 1.3 1995/03/23 08:34:44 cgd Exp $ */ +/* $NetBSD: jail.c,v 1.4 1997/10/12 17:45:14 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -33,21 +33,24 @@ * SUCH DAMAGE. */ +#include #ifndef lint #if 0 static char sccsid[] = "@(#)jail.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: jail.c,v 1.3 1995/03/23 08:34:44 cgd Exp $"; +__RCSID("$NetBSD: jail.c,v 1.4 1997/10/12 17:45:14 christos Exp $"); #endif #endif /* not lint */ -# include "monop.ext" +#include "monop.ext" /* * This routine uses a get-out-of-jail-free card to get the * player out of jail. */ -card() { +void +card() +{ if (cur_p->loc != JAIL) { printf("But you're not IN Jail\n"); @@ -65,8 +68,10 @@ card() { * This routine returns the players get-out-of-jail-free card * to a deck. */ +void ret_card(plr) -reg PLAY *plr; { +PLAY *plr; +{ plr->num_gojf--; if (CC_D.gojf_used) @@ -77,7 +82,9 @@ reg PLAY *plr; { /* * This routine deals with paying your way out of jail. */ -pay() { +void +pay() +{ if (cur_p->loc != JAIL) { printf("But you're not IN Jail\n"); @@ -91,8 +98,10 @@ pay() { /* * This routine deals with a move in jail */ +int move_jail(r1, r2) -reg int r1, r2; { +int r1, r2; +{ if (r1 != r2) { printf("Sorry, that doesn't get you out\n"); @@ -113,7 +122,10 @@ moveit: goto moveit; } } -printturn() { + +void +printturn() +{ if (cur_p->loc != JAIL) return; -- cgit v1.2.3