summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-18 04:37:06 +0000
committerrubidium <rubidium@openttd.org>2008-04-18 04:37:06 +0000
commit9d8fa486af824039fae197212d83365242511da5 (patch)
tree31dd8caca4df193a4a2d7a3cd1ef2974e1a2b5a0 /src/settings.cpp
parent6daaf0fc5565599f9c87b431a69cdcbb91ed74ac (diff)
downloadopenttd-9d8fa486af824039fae197212d83365242511da5.tar.xz
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index e4a98942d..307db3ecc 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -83,7 +83,7 @@ static void pool_free(SettingsMemoryPool **pool);
static bool IsSignedVarMemType(VarType vt);
struct SettingsMemoryPool {
- uint pos,size;
+ uint pos, size;
SettingsMemoryPool *next;
byte mem[1];
};
@@ -242,7 +242,7 @@ static IniFile *ini_load(const char *filename)
/* trim whitespace from right side. */
e = s + strlen(s);
- while (e > s && ((c=e[-1]) == '\n' || c == '\r' || c == ' ' || c == '\t')) e--;
+ while (e > s && ((c = e[-1]) == '\n' || c == '\r' || c == ' ' || c == '\t')) e--;
*e = '\0';
/* skip comments and empty lines */
@@ -253,7 +253,7 @@ static IniFile *ini_load(const char *filename)
/* add to comment */
if (ns > a) {
a = max(a, 128U);
- do a*=2; while (a < ns);
+ do a *= 2; while (a < ns);
comment = ReallocT(comment, comment_alloc = a);
}
pos = comment_size;