convert "do {...} while (1);" -> "while (1) {...}"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2011-03-02 04:07:14 +01:00
parent 708dd4c986
commit 940c7206c2
4 changed files with 17 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ static char *next_file(char *old, unsigned suffix_len)
unsigned i = 1;
char *curr;
do {
while (1) {
curr = old + end - i;
if (*curr < 'z') {
*curr += 1;
@@ -43,7 +43,7 @@ static char *next_file(char *old, unsigned suffix_len)
return NULL;
}
*curr = 'a';
} while (1);
}
return old;
}