summaryrefslogtreecommitdiff
path: root/pimd/pim_zebra.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2018-07-02 14:15:43 -0400
committerGitHub <noreply@github.com>2018-07-02 14:15:43 -0400
commitcab3de7e27321fbd78f7f8bb91b7897b676e2205 (patch)
treead49c8dc17e2abb355acd72dc3eb476d0d9139fb /pimd/pim_zebra.c
parenta566aa95b31f0a952caa979f9aec5cb0491e5d92 (diff)
parent0651460e00282d13f01b5423213a085f9fba2db6 (diff)
Merge pull request #2603 from pacovn/PVS-Studio_format_warnings
eigrpd nhrpd ospfd pimd: fomat fixes (PVS-Studio)
Diffstat (limited to 'pimd/pim_zebra.c')
-rw-r--r--pimd/pim_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c
index cb384bfe1d..a58dfcdd5f 100644
--- a/pimd/pim_zebra.c
+++ b/pimd/pim_zebra.c
@@ -202,7 +202,7 @@ static int pim_zebra_if_state_up(int command, struct zclient *zclient,
* If we have a pimreg device callback and it's for a specific
* table set the master appropriately
*/
- if (sscanf(ifp->name, "pimreg%d", &table_id) == 1) {
+ if (sscanf(ifp->name, "pimreg%" SCNu32, &table_id) == 1) {
struct vrf *vrf;
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
if ((table_id == vrf->data.l.table_id)