From 55bcdf9838f790e70d828225a2c008ea7eb2a662 Mon Sep 17 00:00:00 2001 From: Byrial Jensen Date: Mon, 19 Dec 2011 11:25:11 +0100 Subject: [PATCH] Remove the last 2 compile warnings in gamelist.h --- gamelist.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gamelist.c b/gamelist.c index 517a519..cb66eaa 100644 --- a/gamelist.c +++ b/gamelist.c @@ -352,10 +352,11 @@ int GameListBuild(f) if (currentListGame->gameInfo.resultDetails != NULL) { free(currentListGame->gameInfo.resultDetails); } - if(yy_text[0] == '{') { char *p; - safeStrCpy(lastComment, yy_text+1, sizeof(lastComment)/sizeof(lastComment[0])); - if(p = strchr(lastComment, '}')) *p = 0; - currentListGame->gameInfo.resultDetails = StrSave(lastComment); + if(yy_text[0] == '{') { + char *p; + safeStrCpy(lastComment, yy_text+1, sizeof(lastComment)/sizeof(lastComment[0])); + if((p = strchr(lastComment, '}'))) *p = 0; + currentListGame->gameInfo.resultDetails = StrSave(lastComment); } break; default: @@ -382,7 +383,7 @@ int GameListBuild(f) } } } -GetTimeMark(&t2);printf("GameListBuild %d msec\n", SubtractTimeMarks(&t2,&t)); +GetTimeMark(&t2);printf("GameListBuild %ld msec\n", SubtractTimeMarks(&t2,&t)); quickFlag = 0; PackGame(boards[scratch]); // for appending end-of-game marker. DisplayTitle("WinBoard"); -- 1.7.0.4