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 <rzalamena@opensourcerouting.org>
This commit is contained in:
Rafael Zalamena 2023-01-19 12:09:29 -03:00
parent cd16c74b77
commit d8145114e0

View File

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