From 83df80656b43f988f8eb6c488beea936c39b19e0 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Tue, 17 Dec 2013 21:25:19 +0100 Subject: [PATCH] Minor pat2inc code cleanups --- gnushogi/makepattern.c | 3 +-- gnushogi/pat2inc.c | 3 --- gnushogi/pattern.c | 1 - 3 files changed, 1 insertions(+), 6 deletions(-) diff --git a/gnushogi/makepattern.c b/gnushogi/makepattern.c index 34053d8..2a846e4 100644 --- a/gnushogi/makepattern.c +++ b/gnushogi/makepattern.c @@ -36,7 +36,7 @@ #define MAX_OPENING_SEQUENCE 20 #define MAX_PATTERN 200 -char *patternfile = PATTERNFILE; +static char *patternfile = PATTERNFILE; small_short pattern_data[MAX_PATTERN_DATA]; /* minimal ShowMessage to avoid dependency on extraneous display code */ @@ -188,7 +188,6 @@ ScanPattern (char *s, short *pindex) void ReadOpeningSequences (short *pindex) - { FILE *fd; char s[256]; diff --git a/gnushogi/pat2inc.c b/gnushogi/pat2inc.c index 00d505e..53daa20 100644 --- a/gnushogi/pat2inc.c +++ b/gnushogi/pat2inc.c @@ -84,9 +84,7 @@ test_distance(void) int main(int argc, char **argv) - { - short sq, side, max_pattern_data; #ifdef TEST_DISTANCE @@ -131,4 +129,3 @@ main(int argc, char **argv) return 0; } - diff --git a/gnushogi/pattern.c b/gnushogi/pattern.c index f5209d7..3891b2e 100644 --- a/gnushogi/pattern.c +++ b/gnushogi/pattern.c @@ -147,7 +147,6 @@ GetOpeningPatterns (short *max_opening_sequence) void ShowOpeningPatterns (short max_opening_sequence) - { short os, p, n, i; -- 1.7.0.4