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)
Wed, Dec 24, 4:08 PM
Unknown Object (File)
Sun, Dec 14, 6:11 AM
Unknown Object (File)
Sun, Dec 14, 1:37 AM
Unknown Object (File)
Fri, Dec 12, 10:49 AM
Unknown Object (File)
Thu, Dec 11, 11:22 PM
Unknown Object (File)
Wed, Dec 10, 10:43 AM
Unknown Object (File)
Mon, Dec 8, 4:18 PM
Unknown Object (File)
Sun, Dec 7, 9:11 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