graph_gui.c
changeset 2482 dffcca243dbc
parent 2475 8443e1eefe1b
child 2639 8a7342eb3a78
--- a/graph_gui.c	Sun Oct 02 12:31:00 2005 +0000
+++ b/graph_gui.c	Sun Oct 02 22:39:56 2005 +0000
@@ -824,10 +824,10 @@
 
 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 @@
 		}
 		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 {