summaryrefslogtreecommitdiffstats
path: root/backgammon/common_source/table.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-08-12 05:17:57 +0000
committerdholland <dholland@NetBSD.org>2009-08-12 05:17:57 +0000
commite0b4b2e87c96803d2d4d74cad54f16eb1d15a8d9 (patch)
tree750e4d7083e19c9557737d01e5226e39e8377e56 /backgammon/common_source/table.c
parent653e85afa892eacbbdb9b34fd73115cc38be3911 (diff)
downloadbsdgames-darwin-e0b4b2e87c96803d2d4d74cad54f16eb1d15a8d9.tar.gz
bsdgames-darwin-e0b4b2e87c96803d2d4d74cad54f16eb1d15a8d9.zip
sprinkle static
Diffstat (limited to 'backgammon/common_source/table.c')
-rw-r--r--backgammon/common_source/table.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/backgammon/common_source/table.c b/backgammon/common_source/table.c
index 1b817dca..869d802e 100644
--- a/backgammon/common_source/table.c
+++ b/backgammon/common_source/table.c
@@ -1,4 +1,4 @@
-/* $NetBSD: table.c,v 1.9 2006/03/18 23:23:33 christos Exp $ */
+/* $NetBSD: table.c,v 1.10 2009/08/12 05:17:57 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,13 +34,13 @@
#if 0
static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: table.c,v 1.9 2006/03/18 23:23:33 christos Exp $");
+__RCSID("$NetBSD: table.c,v 1.10 2009/08/12 05:17:57 dholland Exp $");
#endif
#endif /* not lint */
#include "back.h"
-const char *const help2[] = {
+static const char *const help2[] = {
" Enter moves as <s>-<f> or <s>/<r> where <s> is the starting",
"position, <f> is the finishing position, and <r> is the roll.",
"Remember, each die roll must be moved separately.",
@@ -77,6 +77,9 @@ static const struct state atmata[] = {
{'\n', 0, -1}, {'.', 0, 0}
};
+static int dotable(int, int);
+static int rsetbrd(void);
+
int
checkmove(int ist)
{
@@ -194,7 +197,7 @@ dochar:
goto dochar;
}
-int
+static int
dotable(int c, int i)
{
int a;
@@ -288,7 +291,7 @@ dotable(int c, int i)
return (-5);
}
-int
+static int
rsetbrd(void)
{
int i, j, n;