From: H.G. Muller Date: Fri, 10 Jun 2011 09:58:17 +0000 (+0200) Subject: Fix type of shuffleOpenings X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0f9e0a86b743e218d43e72fba5ad1e3640236a2a;p=xboard.git Fix type of shuffleOpenings This was a Boolean option, and thus accessed by the args.h code as such, while it was declared as an int (and used in backend.c as such). This could have led to problems with different endianness. --- diff --git a/backend.c b/backend.c index 4ec6313..6764bea 100644 --- a/backend.c +++ b/backend.c @@ -493,7 +493,7 @@ int nrCastlingRights; // For TwoKings, or to implement castling-unknown status int initialRulePlies, FENrulePlies; FILE *serverMoves = NULL; // next two for broadcasting (/serverMoves option) int loadFlag = 0; -int shuffleOpenings; +Boolean shuffleOpenings; int mute; // mute all sounds // [HGM] vari: next 12 to save and restore variations diff --git a/backend.h b/backend.h index c4b6bb2..aacc706 100644 --- a/backend.h +++ b/backend.h @@ -411,7 +411,7 @@ typedef struct { } ChessProgramStats; extern ChessProgramStats_Move pvInfoList[MAX_MOVES]; -extern int shuffleOpenings; +extern Boolean shuffleOpenings; extern ChessProgramStats programStats; extern int opponentKibitzes; // used by wengineo.c extern int errorExitStatus; diff --git a/xboard.h b/xboard.h index 0ee378a..bc2a5f9 100644 --- a/xboard.h +++ b/xboard.h @@ -157,7 +157,6 @@ extern Pixel timerForegroundPixel, timerBackgroundPixel; extern int searchTime; extern Atom wm_delete_window; extern int squareSize, lineGap, defaultLineGap, useImages, useImageSqs; -extern int shuffleOpenings; extern int startedFromPositionFile; extern char *icsTextMenuString; extern char ICSInputTranslations[];