HomeFreeBSD

daemon: fix clang-tidy warnings

Description

daemon: fix clang-tidy warnings

Fixed narrowing conversions:

  • strtol replaced with strtonum with range check
  • read returns ssize_t
  • kevent.data explicitly cast to int before passing into strerror

While we we're here:

  • Defined and documented maximum restart delay.
  • Fixed typo in a comment.
  • Remove unused includes

Reviewed by: cperciva, kevans

Details

Provenance
ihor_antonovs.familyAuthored on Dec 27 2023, 6:07 AM
kevansCommitted on Dec 27 2023, 6:07 AM
Parents
rG97958f5d5c67: netlink: simplify socket destruction
Branches
Unknown
Tags
Unknown