Page MenuHomeFreeBSD

pkg(7): address minor nits (mostly clang-analyze complaints)
ClosedPublic

Authored by kevans on Feb 7 2021, 6:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 3:55 AM
Unknown Object (File)
Thu, Oct 31, 4:26 PM
Unknown Object (File)
Fri, Oct 25, 11:02 AM
Unknown Object (File)
Oct 2 2024, 12:01 AM
Unknown Object (File)
Sep 27 2024, 3:06 PM
Unknown Object (File)
Sep 26 2024, 9:31 AM
Unknown Object (File)
Sep 20 2024, 11:13 AM
Unknown Object (File)
Sep 8 2024, 6:48 AM
Subscribers

Details

Summary
  • One (1) spurious whitespace.
  • One (1) occurrence of "random(3) bad, arc4random(3)" good.
  • Three (3) writes that will never be seen.

The latter two points are complaints from clang-analyze. Switching to
arc4random(3) is decidedly a good idea because we weren't doing any kind
of PRNG seeding anyways. The discarded assignments are arguably good
for future-proofing, but it's better to improve the S/N ratio from
clang-analyze.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable