projects
/
platform
/
upstream
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
convert "do {...} while (1);" -> "while (1) {...}"
[platform/upstream/busybox.git]
/
coreutils
/
split.c
diff --git
a/coreutils/split.c
b/coreutils/split.c
index
db5a172
..
79316ed
100644
(file)
--- 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;
}