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)
Sat, Oct 4, 11:52 PM
Unknown Object (File)
Fri, Oct 3, 6:10 AM
Unknown Object (File)
Fri, Oct 3, 12:06 AM
Unknown Object (File)
Mon, Sep 29, 4:54 PM
Unknown Object (File)
Sun, Sep 28, 7:27 PM
Unknown Object (File)
Wed, Sep 24, 4:50 PM
Unknown Object (File)
Mon, Sep 22, 1:19 AM
Unknown Object (File)
Thu, Sep 18, 4:04 PM
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