(svn r12368) -Codechange: use explicit body for loops and conditions and remove -Wno-empty-body from the configure script

This commit is contained in:
smatz
2008-03-15 13:21:31 +00:00
parent 5db7288ea9
commit bfae49aeb2
7 changed files with 15 additions and 21 deletions

View File

@@ -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 */