diff options
author | paco <paco@voltanet.io> | 2018-06-18 17:49:58 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-18 17:52:56 +0200 |
commit | 2ec42b858c876dac100e939e7329eaec00f90962 (patch) | |
tree | 97aeba509fadb56029c286f24b31ccaafabb4fb6 /babeld/util.c | |
parent | Merge pull request #2458 from pacovn/Coverity_1221437_Unchecked_return_value (diff) | |
download | frr-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.c | 2 |
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]; } |