mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 07:48:38 +00:00
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:
parent
98b7e9754c
commit
bce18b18fe
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user