summaryrefslogtreecommitdiffstats
path: root/monop/monop.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2012-06-19 05:30:43 +0000
committerdholland <dholland@NetBSD.org>2012-06-19 05:30:43 +0000
commit60030fd11e6c646dbc35c5254b2520d5af45288f (patch)
tree2d9c57e3deb2afa23793d42c8ba11c5b98398282 /monop/monop.c
parent98b4affa216164b77e59278a2b1cdc3deee77716 (diff)
downloadbsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.tar.gz
bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.tar.zst
bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.zip
WARNS=5
Diffstat (limited to 'monop/monop.c')
-rw-r--r--monop/monop.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/monop/monop.c b/monop/monop.c
index 1d140299..7da1c301 100644
--- a/monop/monop.c
+++ b/monop/monop.c
@@ -1,4 +1,4 @@
-/* $NetBSD: monop.c,v 1.26 2011/12/01 07:05:52 ahoka Exp $ */
+/* $NetBSD: monop.c,v 1.27 2012/06/19 05:35:32 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#if 0
static char sccsid[] = "@(#)monop.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: monop.c,v 1.26 2011/12/01 07:05:52 ahoka Exp $");
+__RCSID("$NetBSD: monop.c,v 1.27 2012/06/19 05:35:32 dholland Exp $");
#endif
#endif /* not lint */
@@ -223,9 +223,7 @@ SQUARE board[N_SQRS+1] = { /* board itself (+1 for Jail) */
* This program implements a monopoly game
*/
int
-main(ac, av)
- int ac;
- char *av[];
+main(int ac, char *av[])
{
/* Revoke setgid privileges */
setgid(getgid());
@@ -254,8 +252,7 @@ main(ac, av)
/*ARGSUSED*/
static void
-do_quit(n)
- int n __unused;
+do_quit(int n __unused)
{
quit();
}
@@ -264,7 +261,7 @@ do_quit(n)
* This routine gets the names of the players
*/
static void
-getplayers()
+getplayers(void)
{
int i, j;
char buf[257];
@@ -318,7 +315,7 @@ blew_it:
* This routine figures out who goes first
*/
static void
-init_players()
+init_players(void)
{
int i, rl, cur_max;
bool over = 0;
@@ -350,7 +347,7 @@ again:
* This routine initializes the monopoly structures.
*/
static void
-init_monops()
+init_monops(void)
{
MON *mp;
int i;