diff options
author | dholland <dholland@NetBSD.org> | 2012-06-19 05:30:43 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2012-06-19 05:30:43 +0000 |
commit | 60030fd11e6c646dbc35c5254b2520d5af45288f (patch) | |
tree | 2d9c57e3deb2afa23793d42c8ba11c5b98398282 /monop/misc.c | |
parent | 98b4affa216164b77e59278a2b1cdc3deee77716 (diff) | |
download | bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.tar.gz bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.tar.zst bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.zip |
WARNS=5
Diffstat (limited to 'monop/misc.c')
-rw-r--r-- | monop/misc.c | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/monop/misc.c b/monop/misc.c index c69b90d0..aaa9eb3d 100644 --- a/monop/misc.c +++ b/monop/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.22 2011/12/01 07:05:52 ahoka Exp $ */ +/* $NetBSD: misc.c,v 1.23 2012/06/19 05:35:32 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: misc.c,v 1.22 2011/12/01 07:05:52 ahoka Exp $"); +__RCSID("$NetBSD: misc.c,v 1.23 2012/06/19 05:35:32 dholland Exp $"); #endif #endif /* not lint */ @@ -52,8 +52,7 @@ static void is_monop(MON *, int); * "yes or "no" answer is gotten. */ int -getyn(prompt) - const char *prompt; +getyn(const char *prompt) { int com; @@ -68,7 +67,7 @@ getyn(prompt) * This routine tells the player if he's out of money. */ void -notify() +notify(void) { if (cur_p->money < 0) printf("That leaves you $%d in debt\n", -cur_p->money); @@ -84,7 +83,7 @@ notify() * This routine switches to the next player */ void -next_play() +next_play(void) { player = (player + 1) % num_play; cur_p = &play[player]; @@ -96,8 +95,7 @@ next_play() * given prompt. */ int -get_int(prompt) - const char *prompt; +get_int(const char *prompt) { long num; char *sp; @@ -126,8 +124,7 @@ get_int(prompt) * This routine sets the monopoly flag from the list given. */ void -set_ownlist(pl) - int pl; +set_ownlist(int pl) { int num; /* general counter */ MON *orig; /* remember starting monop ptr */ @@ -238,9 +235,7 @@ set_ownlist(pl) * This routine sets things up as if it is a new monopoly */ static void -is_monop(mp, pl) - MON *mp; - int pl; +is_monop(MON *mp, int pl) { int i; @@ -255,8 +250,7 @@ is_monop(mp, pl) * This routine sets things up as if it is no longer a monopoly */ void -is_not_monop(mp) - MON *mp; +is_not_monop(MON *mp) { int i; @@ -270,7 +264,7 @@ is_not_monop(mp) * This routine gives a list of the current player's routine */ void -list() +list(void) { printhold(player); } @@ -279,7 +273,7 @@ list() * This routine gives a list of a given players holdings */ void -list_all() +list_all(void) { int pl; @@ -292,7 +286,7 @@ list_all() * This routine gives the players a chance before it exits. */ void -quit() +quit(void) { putchar('\n'); |