Some say people read do-while statements are easily as while statements and
get wrong impression. This happens because do-whiles are not common.
Adding braces should make it easier to read the code.
Reference: http://www.spinics.net/lists/linux-kernel-janitors/msg02018.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
len = 0;
} else if (len > max_len)
ret = len - max_len;
- do
+ do {
fputc(' ', stdout);
- while (len++ < max_len);
+ } while (len++ < max_len);
return ret;
}