summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_opaque.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-11-10 17:23:02 +0100
committerGitHub <noreply@github.com>2020-11-10 17:23:02 +0100
commit42e122614b926405783e3e2c427f63d64ea36706 (patch)
tree56a0de50397ea1d45d5e15ebd77d0c27f5aa9439 /ospfd/ospf_opaque.h
parentMerge pull request #7445 from ranjanyash54/dev_4 (diff)
parent* : clean up format specifiers for gcc-10 (diff)
downloadfrr-42e122614b926405783e3e2c427f63d64ea36706.tar.xz
frr-42e122614b926405783e3e2c427f63d64ea36706.zip
Merge pull request #7448 from mjstapp/fix_gcc10_formats
* : clean up format specifiers for gcc-10
Diffstat (limited to 'ospfd/ospf_opaque.h')
-rw-r--r--ospfd/ospf_opaque.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_opaque.h b/ospfd/ospf_opaque.h
index f02f34c9a..c63b8ebda 100644
--- a/ospfd/ospf_opaque.h
+++ b/ospfd/ospf_opaque.h
@@ -94,7 +94,7 @@ struct tlv_header {
#define TLV_BODY_SIZE(tlvh) (ROUNDUP(ntohs((tlvh)->length), sizeof(uint32_t)))
-#define TLV_SIZE(tlvh) (TLV_HDR_SIZE + TLV_BODY_SIZE(tlvh))
+#define TLV_SIZE(tlvh) (uint32_t)(TLV_HDR_SIZE + TLV_BODY_SIZE(tlvh))
#define TLV_HDR_TOP(lsah) \
(struct tlv_header *)((char *)(lsah) + OSPF_LSA_HEADER_SIZE)