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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-08-17 18:43:09 -04:00
parent 98b7e9754c
commit bce18b18fe

View File

@ -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;
}