X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/718b40e43f2fbb804acc0266499926f8e51f83ef..84d25b7fc1866e662d07f1e5d4b17f13c8547fc9:/mille/end.c diff --git a/mille/end.c b/mille/end.c index 49b7bbe3..f6b82112 100644 --- a/mille/end.c +++ b/mille/end.c @@ -1,4 +1,4 @@ -/* $NetBSD: end.c,v 1.6 1997/10/12 00:53:51 lukem Exp $ */ +/* $NetBSD: end.c,v 1.9 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,11 +34,11 @@ #if 0 static char sccsid[] = "@(#)end.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: end.c,v 1.6 1997/10/12 00:53:51 lukem Exp $"); +__RCSID("$NetBSD: end.c,v 1.9 2009/05/25 23:34:50 dholland Exp $"); #endif #endif /* not lint */ -# include "mille.h" +#include "mille.h" /* * @(#)end.c 1.1 (Berkeley) 4/1/82 @@ -53,8 +49,7 @@ __RCSID("$NetBSD: end.c,v 1.6 1997/10/12 00:53:51 lukem Exp $"); * the end-of-games points to the user who deserves it (if any). */ void -finalscore(pp) - PLAY *pp; +finalscore(PLAY *pp) { int temp, tot, num; @@ -90,15 +85,16 @@ finalscore(pp) } } -# ifdef EXTRAP +#ifdef EXTRAP static int Last_tot[2]; /* last tot used for extrapolate */ /* * print out the score as if it was final, and add the totals for * the end-of-games points to the user who deserves it (if any). */ -extrapolate(pp) -reg PLAY *pp; { +void +extrapolate(PLAY *pp) +{ reg int x, num, tot, count; @@ -141,7 +137,9 @@ reg PLAY *pp; { Last_tot[num] = tot; } -undoex() { +void +undoex(void) +{ reg PLAY *pp; reg int i; @@ -152,4 +150,4 @@ undoex() { pp->hand_tot -= Last_tot[i++]; } } -# endif +#endif /* EXTRAP */