summaryrefslogtreecommitdiffstats
path: root/babeld/util.c
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-18 17:49:58 +0200
committerpaco <paco@voltanet.io>2018-06-18 17:52:56 +0200
commit2ec42b858c876dac100e939e7329eaec00f90962 (patch)
tree97aeba509fadb56029c286f24b31ccaafabb4fb6 /babeld/util.c
parentMerge pull request #2458 from pacovn/Coverity_1221437_Unchecked_return_value (diff)
downloadfrr-2ec42b858c876dac100e939e7329eaec00f90962.tar.xz
frr-2ec42b858c876dac100e939e7329eaec00f90962.zip
babeld, lib, ospfd, tests: fmt fixes (cppcheck)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'babeld/util.c')
-rw-r--r--babeld/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/babeld/util.c b/babeld/util.c
index 7dff11d12..4a3ecace0 100644
--- a/babeld/util.c
+++ b/babeld/util.c
@@ -303,7 +303,7 @@ format_thousands(unsigned int value)
static char buf[4][15];
static int i = 0;
i = (i + 1) % 4;
- snprintf(buf[i], 15, "%d.%.3d", value / 1000, value % 1000);
+ snprintf(buf[i], 15, "%u.%.3u", value / 1000, value % 1000);
return buf[i];
}