diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-08-13 09:40:12 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-08-13 09:40:12 +0200 |
commit | c2887b312d229698d3c96505dc573c26d859b4c2 (patch) | |
tree | ea7404be05db349dbec8fb9e800dffa9bb8063ca | |
parent | fcab1ec1a1a71265d86ae0b615a091c674041654 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |