X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/718b40e43f2fbb804acc0266499926f8e51f83ef..05791857e3884b78131a85f78c91c32af0fb5f25:/mille/init.c diff --git a/mille/init.c b/mille/init.c index 0fa3579c..6d6d5147 100644 --- a/mille/init.c +++ b/mille/init.c @@ -1,4 +1,4 @@ -/* $NetBSD: init.c,v 1.7 1997/10/12 00:53:59 lukem Exp $ */ +/* $NetBSD: init.c,v 1.11 2009/05/25 23:34:50 dholland Exp $ */ /* * Copyright (c) 1982, 1993 @@ -12,11 +12,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -38,18 +34,18 @@ #if 0 static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: init.c,v 1.7 1997/10/12 00:53:59 lukem Exp $"); +__RCSID("$NetBSD: init.c,v 1.11 2009/05/25 23:34:50 dholland Exp $"); #endif #endif /* not lint */ -# include "mille.h" +#include "mille.h" /* * @(#)init.c 1.1 (Berkeley) 4/1/82 */ void -init() +init(void) { PLAY *pp; int i, j; @@ -69,7 +65,7 @@ init() pp->hand[j] = *--Topcard; if (i == COMP) { account(card = *Topcard); - if (issafety(card)) + if (is_safety(card)) pp->safety[card - S_CONV] = S_IN_HAND; } } @@ -93,7 +89,7 @@ init() } void -shuffle() +shuffle(void) { int i, r; CARD temp; @@ -112,7 +108,7 @@ shuffle() } void -newboard() +newboard(void) { int i; PLAY *pp; @@ -171,7 +167,7 @@ newboard() } void -newscore() +newscore(void) { int i, new; PLAY *pp;