From: Rafael Zalamena Date: Thu, 19 Jan 2023 15:09:29 +0000 (-0300) Subject: pimd: fix mtracebis tool warning X-Git-Tag: base_8.5~35^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d8145114e0be94ee634743d696112a80826094ea;p=matthieu%2Ffrr.git pimd: fix mtracebis tool warning Use `getpid()` to initialize the sequence number. This change silences Coverity Scan warning about truncated use of `time()` which in this case is not a problem. Found by Coverity Scan (CID 1519828) Signed-off-by: Rafael Zalamena --- diff --git a/pimd/mtracebis_netlink.c b/pimd/mtracebis_netlink.c index 81e28f2407..9bdf949007 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 = (uint32_t)time(NULL); + rth->seq = getpid(); return 0; }