aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-03-02 04:07:14 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-02 04:07:14 +0100
commit940c7206c2a4acb386ab47199a6c313c04387f3b (patch)
tree9fb4aee464611ffd2cc6edbdf862149037e35f60 /coreutils
parent708dd4c98662670f3104b71c2fc5eef82bb726a8 (diff)
downloadbusybox-w32-940c7206c2a4acb386ab47199a6c313c04387f3b.tar.gz
busybox-w32-940c7206c2a4acb386ab47199a6c313c04387f3b.tar.bz2
busybox-w32-940c7206c2a4acb386ab47199a6c313c04387f3b.zip
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 db5a1727a..79316ed74 100644
--- a/coreutils/split.c
+++ b/coreutils/split.c
@@ -32,7 +32,7 @@ static char *next_file(char *old, unsigned suffix_len)
32 unsigned i = 1; 32 unsigned i = 1;
33 char *curr; 33 char *curr;
34 34
35 do { 35 while (1) {
36 curr = old + end - i; 36 curr = old + end - i;
37 if (*curr < 'z') { 37 if (*curr < 'z') {
38 *curr += 1; 38 *curr += 1;
@@ -43,7 +43,7 @@ static char *next_file(char *old, unsigned suffix_len)
43 return NULL; 43 return NULL;
44 } 44 }
45 *curr = 'a'; 45 *curr = 'a';
46 } while (1); 46 }
47 47
48 return old; 48 return old;
49} 49}