X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=ngamelist.c;fp=ngamelist.c;h=f3ef1d977bbd069ac4779fc2c92e5797e82cd8de;hb=26897ecf6be30b8ccc64285e1e293ab76df38ab9;hp=ae5bf12cda85f6e3a0e885365586d3e7264e9545;hpb=f3ac0c32ee54f11a667d624c910c0ee5bce1a9da;p=xboard.git diff --git a/ngamelist.c b/ngamelist.c index ae5bf12..f3ef1d9 100644 --- a/ngamelist.c +++ b/ngamelist.c @@ -96,7 +96,7 @@ static Option gamesOptions[] = { static void GL_Button (int n) { - int index, j; + int index; n = gamesOptions[n].value; // use marker in option rather than n itself, for more easy adding/deletng of buttons if (n == 6) { // close PopDown(GameListDlg); @@ -205,7 +205,7 @@ static void GameListReplace (int page) { // filter: put in separate routine, to make callable from call-back - char buf[MSG_SIZ], *p, **st=list; + char buf[MSG_SIZ], **st=list; int i; if(page) *st++ = _("previous page"); else if(listLength > 1000) *st++ = ""; @@ -223,8 +223,6 @@ GameListReplace (int page) void GameListPopUp (FILE *fp, char *filename) { - char **st; - if (glc == NULL) { glc = (GameListClosure *) calloc(1, sizeof(GameListClosure)); glc->x = glc->y = -1; @@ -266,9 +264,6 @@ GameListDestroy () void ShowGameListProc () { - Arg args[16]; - int j; - if (glc == NULL) { DisplayError(_("There is no game list"), 0); return;