Remove the last 2 compile warnings in gamelist.h
authorByrial Jensen <byrial@vip.cybercity.dk>
Mon, 19 Dec 2011 10:25:11 +0000 (11:25 +0100)
committerByrial Jensen <byrial@vip.cybercity.dk>
Mon, 19 Dec 2011 10:25:11 +0000 (11:25 +0100)
gamelist.c

index 517a519..cb66eaa 100644 (file)
@@ -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");