diff options
| author | F. Aragon <paco@voltanet.io> | 2018-07-02 17:32:05 +0200 |
|---|---|---|
| committer | F. Aragon <paco@voltanet.io> | 2018-07-02 17:50:21 +0200 |
| commit | 0651460e00282d13f01b5423213a085f9fba2db6 (patch) | |
| tree | 51d1f699d419748302254e09781e67c4c49789ab /pimd/pim_zebra.c | |
| parent | 8d6d6b2581be7c60ab4913df1adf46098a3dc4ae (diff) | |
eigrpd nhrpd ospfd pimd: fomat fixes (PVS-Studio)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'pimd/pim_zebra.c')
| -rw-r--r-- | pimd/pim_zebra.c | 2 |
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) |
