summaryrefslogtreecommitdiffstats
path: root/monop/jail.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-10-12 17:45:06 +0000
committerchristos <christos@NetBSD.org>1997-10-12 17:45:06 +0000
commita77b3f8edc13dc6efdbcf80e336689cfa1de08ab (patch)
treedfe6f38b6473068455b85cd2410d8394e1239336 /monop/jail.c
parent5526682d8116582745b79bee12e5007abfddcd86 (diff)
downloadbsdgames-darwin-a77b3f8edc13dc6efdbcf80e336689cfa1de08ab.tar.gz
bsdgames-darwin-a77b3f8edc13dc6efdbcf80e336689cfa1de08ab.tar.zst
bsdgames-darwin-a77b3f8edc13dc6efdbcf80e336689cfa1de08ab.zip
WARNSify
Diffstat (limited to 'monop/jail.c')
-rw-r--r--monop/jail.c28
1 files changed, 20 insertions, 8 deletions
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 <sys/cdefs.h>
#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;