diff options
author | darkvater <darkvater@openttd.org> | 2004-09-12 21:49:38 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-09-12 21:49:38 +0000 |
commit | e295e46e3eccd58626ce2b02aab24b96c025636b (patch) | |
tree | 849dacad3729ee4bbd27669505a1932ca301592d /industry_gui.c | |
parent | 1b498bca57457a5f46cc43baef225687e312692b (diff) | |
download | openttd-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 'industry_gui.c')
-rw-r--r-- | industry_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/industry_gui.c b/industry_gui.c index 3e05c79d0..db34d8b44 100644 --- a/industry_gui.c +++ b/industry_gui.c @@ -392,8 +392,8 @@ static int CDECL GeneralIndustrySorter(const void *a, const void *b) { char buf1[96]; byte val; - Industry *i = DEREF_INDUSTRY(*(byte*)a); - Industry *j = DEREF_INDUSTRY(*(byte*)b); + Industry *i = DEREF_INDUSTRY(*(const byte*)a); + Industry *j = DEREF_INDUSTRY(*(const byte*)b); int r = 0; switch (_industry_sort_order >> 1) { @@ -437,7 +437,7 @@ static int CDECL GeneralIndustrySorter(const void *a, const void *b) SET_DPARAM32(0, i->town->townnameparts); GetString(buf1, i->town->townnametype); - if ( (val=*(byte*)b) != _last_industry_idx) { + if ( (val=*(const byte*)b) != _last_industry_idx) { _last_industry_idx = val; SET_DPARAM32(0, j->town->townnameparts); GetString(_bufcache, j->town->townnametype); |