From: Tobias Klauser Date: Tue, 13 Aug 2013 07:40:12 +0000 (+0200) Subject: ifpps: minor: Add parentheses to do {} while in padding_from_num() X-Git-Tag: v0.5.8-rc3~8 X-Git-Url: https://repo.or.cz/w/netsniff-ng.git/commitdiff_plain/c2887b312d229698d3c96505dc573c26d859b4c2 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 --- diff --git a/ifpps.c b/ifpps.c index b2d3e49e..f61e6506 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; }