summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-08-13 09:40:12 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-08-13 09:40:12 +0200
commitc2887b312d229698d3c96505dc573c26d859b4c2 (patch)
treeea7404be05db349dbec8fb9e800dffa9bb8063ca
parentfcab1ec1a1a71265d86ae0b615a091c674041654 (diff)
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 <tklauser@distanz.ch>
-rw-r--r--ifpps.c5
1 files 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;
}