From c2887b312d229698d3c96505dc573c26d859b4c2 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 13 Aug 2013 09:40:12 +0200 Subject: ifpps: minor: Add parentheses to do {} while in padding_from_num() Even though the loop contains only one statement, add parentheses around it to make it more readable. Signed-off-by: Tobias Klauser --- ifpps.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ifpps.c b/ifpps.c index b2d3e49..f61e650 100644 --- 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; } -- cgit v1.2.3-54-g00ecf