diff options
author | smatz <smatz@openttd.org> | 2008-03-15 13:21:31 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-03-15 13:21:31 +0000 |
commit | bfae49aeb2affaf239f7e9b04b6b7e226830e962 (patch) | |
tree | 430a2db18c790d538b3473d93a0c95f2afbdde7d /src/settings.cpp | |
parent | 5db7288ea961e1418d0983d8ef4c08c32d2fc879 (diff) | |
download | openttd-bfae49aeb2affaf239f7e9b04b6b7e226830e962.tar.xz |
(svn r12368) -Codechange: use explicit body for loops and conditions and remove -Wno-empty-body from the configure script
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 072e4eb18..7a257bf64 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -236,7 +236,7 @@ static IniFile *ini_load(const char *filename) while (fgets(buffer, sizeof(buffer), in)) { /* trim whitespace from the left side */ - for (s = buffer; *s == ' ' || *s == '\t'; s++); + for (s = buffer; *s == ' ' || *s == '\t'; s++) {} /* trim whitespace from right side. */ e = s + strlen(s); @@ -278,10 +278,10 @@ static IniFile *ini_load(const char *filename) /* find end of keyname */ if (*s == '\"') { s++; - for (t = s; *t != '\0' && *t != '\"'; t++); + for (t = s; *t != '\0' && *t != '\"'; t++) {} if (*t == '\"') *t = ' '; } else { - for (t = s; *t != '\0' && *t != '=' && *t != '\t' && *t != ' '; t++); + for (t = s; *t != '\0' && *t != '=' && *t != '\t' && *t != ' '; t++) {} } /* it's an item in an existing group */ |