summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_hello.c
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-07-02 17:32:05 +0200
committerF. Aragon <paco@voltanet.io>2018-07-02 17:50:21 +0200
commit0651460e00282d13f01b5423213a085f9fba2db6 (patch)
tree51d1f699d419748302254e09781e67c4c49789ab /eigrpd/eigrp_hello.c
parentMerge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3... (diff)
downloadfrr-0651460e00282d13f01b5423213a085f9fba2db6.tar.xz
frr-0651460e00282d13f01b5423213a085f9fba2db6.zip
eigrpd nhrpd ospfd pimd: fomat fixes (PVS-Studio)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'eigrpd/eigrp_hello.c')
-rw-r--r--eigrpd/eigrp_hello.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eigrpd/eigrp_hello.c b/eigrpd/eigrp_hello.c
index d9e89357c..2e55d57c3 100644
--- a/eigrpd/eigrp_hello.c
+++ b/eigrpd/eigrp_hello.c
@@ -417,7 +417,8 @@ void eigrp_sw_version_initialize(void)
if (dash)
dash[0] = '\0';
- ret = sscanf(ver_string, "%d.%d", &FRR_MAJOR, &FRR_MINOR);
+ ret = sscanf(ver_string, "%" SCNu32 ".%" SCNu32, &FRR_MAJOR,
+ &FRR_MINOR);
if (ret != 2)
zlog_err("Did not Properly parse %s, please fix VERSION string",
VERSION);