summaryrefslogtreecommitdiffstats
path: root/misc-utils/blkid.c
diff options
context:
space:
mode:
authorSami Kerola2017-03-05 21:52:24 +0100
committerKarel Zak2017-03-13 15:24:57 +0100
commit126d8cf35b4403b575056304c966e9dd489f4aa9 (patch)
tree67c4b0b76007c1d1c4170caa25f7311fcec7fd1c /misc-utils/blkid.c
parentlibfdisk: fix potentially NULL pointer usage (diff)
downloadkernel-qcow2-util-linux-126d8cf35b4403b575056304c966e9dd489f4aa9.tar.gz
kernel-qcow2-util-linux-126d8cf35b4403b575056304c966e9dd489f4aa9.tar.xz
kernel-qcow2-util-linux-126d8cf35b4403b575056304c966e9dd489f4aa9.zip
blkid: add curly braces to do-while statement
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>
Diffstat (limited to 'misc-utils/blkid.c')
-rw-r--r--misc-utils/blkid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c
index 9278553c7..7bbb54dfd 100644
--- a/misc-utils/blkid.c
+++ b/misc-utils/blkid.c
@@ -139,9 +139,9 @@ static int pretty_print_word(const char *str, int max_len,
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;
}