summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-06 21:47:12 +0000
committerdarkvater <darkvater@openttd.org>2004-09-06 21:47:12 +0000
commitc1e464f1ead5e7b1b021db1752cae3d9dc2c2822 (patch)
tree9ce5aea45298928faaad65ea4bd66b4f8e9d41cd
parent239f16a1e1ee5dccb87e80341be3a78823e5770a (diff)
downloadopenttd-c1e464f1ead5e7b1b021db1752cae3d9dc2c2822.tar.xz
(svn r172) -Fix: warning fixes (Tron)
-rw-r--r--vehicle_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 3edd898ef..dd8cd1f52 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -74,8 +74,8 @@ int CDECL VehicleNumberSorter(const void *a, const void *b)
static char _bufcache[64]; // used together with _last_vehicle_idx to hopefully speed up stringsorting
int CDECL VehicleNameSorter(const void *a, const void *b)
{
- const SortStruct *cmp1 = (SortStruct*)a;
- const SortStruct *cmp2 = (SortStruct*)b;
+ const SortStruct *cmp1 = (const SortStruct*)a;
+ const SortStruct *cmp2 = (const SortStruct*)b;
const Vehicle *va = DEREF_VEHICLE(cmp1->index);
const Vehicle *vb = DEREF_VEHICLE(cmp2->index);
char buf1[64] = "\0";
@@ -110,7 +110,7 @@ int CDECL VehicleAgeSorter(const void *a, const void *b)
int r = va->age - vb->age;
if (r == 0) // if the sorting criteria had the same value, sort by unitnumber
- r = va->unitnumber - vb->unitnumber;
+ r = va->unitnumber - vb->unitnumber;
return (_internal_sort_order & 1) ? -r : r;
}