From bce18b18fefcfb5c6f317dd187104963ce771d06 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 17 Aug 2022 18:43:09 -0400 Subject: [PATCH] pimd: Intentionally downcast to a uint32_t value When calling time(NULL), FRR is intentionally throwing away the upper 32 bits of value returned. Let's explicitly call it out so that coverity understands this is intentional and ok. Signed-off-by: Donald Sharp --- pimd/mtracebis_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/mtracebis_netlink.c b/pimd/mtracebis_netlink.c index fe2cb56a26..81e28f2407 100644 --- a/pimd/mtracebis_netlink.c +++ b/pimd/mtracebis_netlink.c @@ -92,7 +92,7 @@ int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions, rth->local.nl_family); return -1; } - rth->seq = time(NULL); + rth->seq = (uint32_t)time(NULL); return 0; } -- 2.39.5