summaryrefslogtreecommitdiffstats
path: root/babeld/babel_interface.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/babel_interface.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/babel_interface.c')
-rw-r--r--babeld/babel_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c
index d4958ddf2..453fd8e04 100644
--- a/babeld/babel_interface.c
+++ b/babeld/babel_interface.c
@@ -1001,7 +1001,7 @@ show_babel_routes_sub(struct babel_route *route, struct vty *vty,
break;
if(k > 0)
channels[j++] = ',';
- snprintf(channels + j, 100 - j, "%d", route->channels[k]);
+ snprintf(channels + j, 100 - j, "%u", route->channels[k]);
j = strlen(channels);
}
snprintf(channels + j, 100 - j, ")");