summaryrefslogtreecommitdiffstats
path: root/mille/comp.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-05-25 23:24:54 +0000
committerdholland <dholland@NetBSD.org>2009-05-25 23:24:54 +0000
commit1bb96be3372ee03925cdb9f4b5da4f5fa989c55e (patch)
tree8c771d8ae19fe69a371e8ffb0d0c289375996b27 /mille/comp.c
parentb699392ee5e6c55d892a0ab1a639208a373d9bab (diff)
downloadbsdgames-darwin-1bb96be3372ee03925cdb9f4b5da4f5fa989c55e.tar.gz
bsdgames-darwin-1bb96be3372ee03925cdb9f4b5da4f5fa989c55e.tar.zst
bsdgames-darwin-1bb96be3372ee03925cdb9f4b5da4f5fa989c55e.zip
ANSIfy function declarations. Object file diffs checked.
Diffstat (limited to 'mille/comp.c')
-rw-r--r--mille/comp.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/mille/comp.c b/mille/comp.c
index ef42f102..99479b3a 100644
--- a/mille/comp.c
+++ b/mille/comp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: comp.c,v 1.10 2006/03/19 00:29:27 christos Exp $ */
+/* $NetBSD: comp.c,v 1.11 2009/05/25 23:24:54 dholland Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)comp.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: comp.c,v 1.10 2006/03/19 00:29:27 christos Exp $");
+__RCSID("$NetBSD: comp.c,v 1.11 2009/05/25 23:24:54 dholland Exp $");
#endif
#endif /* not lint */
@@ -47,7 +47,7 @@ __RCSID("$NetBSD: comp.c,v 1.10 2006/03/19 00:29:27 christos Exp $");
# define V_VALUABLE 40
void
-calcmove()
+calcmove(void)
{
CARD card;
int *value;
@@ -401,8 +401,7 @@ play_it:
* Return true if the given player could conceivably win with his next card.
*/
int
-onecard(pp)
- const PLAY *pp;
+onecard(const PLAY *pp)
{
CARD bat, spd, card;
@@ -434,9 +433,7 @@ onecard(pp)
}
int
-canplay(pp, op, card)
- const PLAY *pp, *op;
- CARD card;
+canplay(const PLAY *pp, const PLAY *op, CARD card)
{
switch (card) {
case C_200: