summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}