summaryrefslogtreecommitdiff
path: root/station_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-12 21:49:38 +0000
committerdarkvater <darkvater@openttd.org>2004-09-12 21:49:38 +0000
commite295e46e3eccd58626ce2b02aab24b96c025636b (patch)
tree849dacad3729ee4bbd27669505a1932ca301592d /station_gui.c
parent1b498bca57457a5f46cc43baef225687e312692b (diff)
downloadopenttd-e295e46e3eccd58626ce2b02aab24b96c025636b.tar.xz
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron)
-CodeLayout: Remove trailing spaces and Windows linebreaks
Diffstat (limited to 'station_gui.c')
-rw-r--r--station_gui.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/station_gui.c b/station_gui.c
index 5337a5349..b1c553a30 100644
--- a/station_gui.c
+++ b/station_gui.c
@@ -54,9 +54,8 @@ static int CDECL StationNameSorter(const void *a, const void *b)
{
char buf1[64];
Station *st;
- SortStruct *cmp1, *cmp2;
- cmp1 = (SortStruct*)a;
- cmp2 = (SortStruct*)b;
+ const SortStruct *cmp1 = (const SortStruct*)a;
+ const SortStruct *cmp2 = (const SortStruct*)b;
st = DEREF_STATION(cmp1->index);
SET_DPARAM16(0, st->town->townnametype);