summaryrefslogtreecommitdiff
path: root/graph_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-10-02 22:39:56 +0000
committerDarkvater <darkvater@openttd.org>2005-10-02 22:39:56 +0000
commita3d40a29fc10e67c4a1b7cbd7fd519da030167af (patch)
tree5bcc6532a22928d167bf464a1c93f8aafbefa0f6 /graph_gui.c
parente8fac6c6cb2a19a15b57c9629b0f69de37acecd2 (diff)
downloadopenttd-a3d40a29fc10e67c4a1b7cbd7fd519da030167af.tar.xz
(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)
Fix warning in graph_gui.c with const problem
Diffstat (limited to 'graph_gui.c')
-rw-r--r--graph_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/graph_gui.c b/graph_gui.c
index e861de2a7..cedca5f46 100644
--- a/graph_gui.c
+++ b/graph_gui.c
@@ -824,10 +824,10 @@ static int CDECL _perf_hist_comp(const void *elem1, const void *elem2 ) {
static void CompanyLeagueWndProc(Window *w, WindowEvent *e)
{
- switch(e->event) {
+ switch (e->event) {
case WE_PAINT: {
const Player* p;
- const Player* plist[MAX_PLAYERS];
+ Player const *plist[MAX_PLAYERS];
uint pl_num;
uint i;
@@ -840,7 +840,7 @@ static void CompanyLeagueWndProc(Window *w, WindowEvent *e)
}
assert(pl_num > 0);
- qsort(plist, pl_num, sizeof(Player*), _perf_hist_comp);
+ qsort((void*)plist, pl_num, sizeof(Player*), _perf_hist_comp);
i = 0;
do {