X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Frawdsp.c;h=fa121b023d0134c74ad3f7aa3bf88f820ed6f996;hb=916e9d3b3acd6422ad21f8edbbe5da768737f2b8;hp=99a9ba0efd5ee169d402f66291c79caafa0e32d9;hpb=d5950fc45c863579313dd37abff008838c10c5ce;p=gnushogi.git diff --git a/gnushogi/rawdsp.c b/gnushogi/rawdsp.c index 99a9ba0..fa121b0 100644 --- a/gnushogi/rawdsp.c +++ b/gnushogi/rawdsp.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -322,7 +323,7 @@ Raw_help(void) "--------------------------------\n"); printf("Computer: %-12s Opponent: %s\n", ColorStr[computer], ColorStr[opponent]); - printf("Depth: %-12d Response time: %d sec\n", + printf("Depth: %-12d Response time: %ld sec\n", MaxSearchDepth, MaxResponseTime/100); printf("Random: %-12s Easy mode: %s\n", (dither) ? "ON" : "OFF", (flag.easy) ? "ON" : "OFF"); @@ -330,7 +331,7 @@ Raw_help(void) (flag.beep) ? "ON" : "OFF", (flag.hash) ? "ON" : "OFF"); printf("Tsume: %-12s Force: %s\n", (flag.tsume) ? "ON" : "OFF", (flag.force) ? "ON" : "OFF"); - printf("Time Control %s %d moves %d sec %d add %d depth\n", + printf("Time Control %s %d moves %ld sec %d add %d depth\n", (TCflag) ? "ON" : "OFF", TimeControl.moves[black], TimeControl.clock[black] / 100, TCadd/100, MaxSearchDepth); @@ -818,8 +819,7 @@ Raw_ChangeXwindow(void) void Raw_ShowPostnValue(short sq) { - short score; - score = ScorePosition(color[sq]); + (void) ScorePosition(color[sq]); if (color[sq] != neutral) {