[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[XBoard-devel] [PATCH 2/2] GameListPrepare: Change return value to void
From: |
Thomas Adam |
Subject: |
[XBoard-devel] [PATCH 2/2] GameListPrepare: Change return value to void |
Date: |
Fri, 20 Mar 2015 14:42:40 +0000 |
GameListPrepare() calculates the listLength, yet this is static to the file
(global) and does not need to be returned explicitly.
---
ngamelist.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/ngamelist.c b/ngamelist.c
index 9b1b0d7..85478a1 100644
--- a/ngamelist.c
+++ b/ngamelist.c
@@ -77,7 +77,7 @@ static char *filterPtr;
static char *list[1003];
static int listEnd;
-static int GameListPrepare P((int byPos, int narrow));
+static void GameListPrepare P((int byPos, int narrow));
static void GameListReplace P((int page));
static void GL_Button P((int n));
@@ -158,7 +158,7 @@ GameListCreate (char *name)
return new;
}
-static int
+static void
GameListPrepare (int byPos, int narrow)
{ // [HGM] filter: put in separate routine, to make callable from call-back
int nstrings;
@@ -198,7 +198,6 @@ GameListPrepare (int byPos, int narrow)
if(appData.debugMode) { GetTimeMark(&t2);printf("GameListPrepare %ld
msec\n", SubtractTimeMarks(&t2,&t)); }
DisplayTitle("XBoard");
*st = NULL;
- return listLength;
}
static void
--
2.1.4
- [XBoard-devel] [PATCH 1/2] Fix segfault with 'Game List Tags' dialogue, Thomas Adam, 2015/03/20
- [XBoard-devel] [PATCH 2/2] GameListPrepare: Change return value to void,
Thomas Adam <=
- Re: [XBoard-devel] [PATCH 1/2] Fix segfault with 'Game List Tags' dialogue, H.G. Muller, 2015/03/20
- Re: [XBoard-devel] [PATCH 1/2] Fix segfault with 'Game List Tags' dialogue, Thomas Adam, 2015/03/20
- Re: [XBoard-devel] [PATCH 1/2] Fix segfault with 'Game List Tags' dialogue, H.G. Muller, 2015/03/21
- Re: [XBoard-devel] [PATCH 1/2] Fix segfault with 'Game List Tags' dialogue, Thomas Adam, 2015/03/21
- Re: [XBoard-devel] [PATCH 1/2] Fix segfault with 'Game List Tags' dialogue, H.G. Muller, 2015/03/21
- Re: [XBoard-devel] [PATCH 1/2] Fix segfault with 'Game List Tags' dialogue, Joshua Pettus, 2015/03/21
- Re: [XBoard-devel] [PATCH 1/2] Fix segfault with 'Game List Tags' dialogue, Thomas Adam, 2015/03/21
- Re: [XBoard-devel] [PATCH 1/2] Fix segfault with 'Game List Tags' dialogue, Tim Mann, 2015/03/22