ifpps: minor: Add parentheses to do {} while in padding_from_num()
authorTobias Klauser <tklauser@distanz.ch>
Tue, 13 Aug 2013 07:40:12 +0000 (13 09:40 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 13 Aug 2013 07:40:12 +0000 (13 09:40 +0200)
Even though the loop contains only one statement, add parentheses around
it to make it more readable.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
ifpps.c

diff --git a/ifpps.c b/ifpps.c
index b2d3e49..f61e650 100644 (file)
--- a/ifpps.c
+++ b/ifpps.c
@@ -159,8 +159,9 @@ static void __noreturn version(void)
 static inline int padding_from_num(int n)
 {
        int i = 0;
-       do i++;
-       while ((n /= 10) > 0);
+       do {
+               i++;
+       } while ((n /= 10) > 0);
        return i;
 }