summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko2011-03-02 04:07:14 +0100
committerDenys Vlasenko2011-03-02 04:07:14 +0100
commit940c7206c2a4acb386ab47199a6c313c04387f3b (patch)
tree9fb4aee464611ffd2cc6edbdf862149037e35f60 /coreutils
parent708dd4c98662670f3104b71c2fc5eef82bb726a8 (diff)
downloadbusybox-940c7206c2a4acb386ab47199a6c313c04387f3b.zip
busybox-940c7206c2a4acb386ab47199a6c313c04387f3b.tar.gz
convert "do {...} while (1);" -> "while (1) {...}"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/split.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/split.c b/coreutils/split.c
index db5a172..79316ed 100644
--- a/coreutils/split.c
+++ b/coreutils/split.c
@@ -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;
}