summaryrefslogtreecommitdiffstats
path: root/mbbsd/othello.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-03 07:38:18 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-03 07:38:18 +0800
commitd3829ef075e6227a9a4b92ad707e7ad3b490aacd (patch)
tree836007e84dd95e68c9e337ae69659cf622120bf5 /mbbsd/othello.c
parent11cf3f25d98f02e3e02984b5e372159d9b6c555b (diff)
downloadpttbbs-d3829ef075e6227a9a4b92ad707e7ad3b490aacd.tar
pttbbs-d3829ef075e6227a9a4b92ad707e7ad3b490aacd.tar.gz
pttbbs-d3829ef075e6227a9a4b92ad707e7ad3b490aacd.tar.bz2
pttbbs-d3829ef075e6227a9a4b92ad707e7ad3b490aacd.tar.lz
pttbbs-d3829ef075e6227a9a4b92ad707e7ad3b490aacd.tar.xz
pttbbs-d3829ef075e6227a9a4b92ad707e7ad3b490aacd.tar.zst
pttbbs-d3829ef075e6227a9a4b92ad707e7ad3b490aacd.zip
warning free: "static" should be in front of "const"
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2569 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/othello.c')
-rw-r--r--mbbsd/othello.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/othello.c b/mbbsd/othello.c
index 3392ca02..38f9175d 100644
--- a/mbbsd/othello.c
+++ b/mbbsd/othello.c
@@ -21,9 +21,9 @@
#define INVERT(COLOR) (((COLOR))==WHITE?BLACK:WHITE)
static char nowx = 3, nowy = 3;
-const static char *CHESS_TYPE[] = {NONE_CHESS, HINT_CHESS, BLACK_CHESS, WHITE_CHESS};
-const static char DIRX[] = {-1, -1, -1, 0, 1, 1, 1, 0};
-const static char DIRY[] = {-1, 0, 1, 1, 1, 0, -1, -1};
+static const char *CHESS_TYPE[] = {NONE_CHESS, HINT_CHESS, BLACK_CHESS, WHITE_CHESS};
+static const char DIRX[] = {-1, -1, -1, 0, 1, 1, 1, 0};
+static const char DIRY[] = {-1, 0, 1, 1, 1, 0, -1, -1};
static char number[2];
static char pass = 0;
@@ -41,7 +41,7 @@ static char nowboard[10][10] =
{-1, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, -1},
{-1, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, -1},
{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}};
-const static char init_table[NR_TABLE + 1][5][5] = {
+static const char init_table[NR_TABLE + 1][5][5] = {
{{0, 0, 0, 0, 0},
{0, 30, -3, 2, 2},
{0, -3, -3, -1, -1},