HomeFreeBSD

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

Description

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

  • 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.

Reviewed by: bapt, manu
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28525

Details

Provenance
kevansAuthored on Feb 12 2021, 12:58 AM
Reviewer
bapt
Differential Revision
D28525: pkg(7): address minor nits (mostly clang-analyze complaints)
Parents
rG18418e1936b5: pkg(7): add an -r reponame option for bootstrap and add
Branches
Unknown
Tags
Unknown