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 /eigrpd/eigrp_hello.c | |
| parent | 8d6d6b2581be7c60ab4913df1adf46098a3dc4ae (diff) | |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eigrpd/eigrp_hello.c b/eigrpd/eigrp_hello.c index d9e89357ca..2e55d57c31 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); |
