HomeFreeBSD

top(1): cleanup memory allocation and warnings

Description

top(1): cleanup memory allocation and warnings

  • Prefer calloc over malloc. This is more predicable and we're not in a

performance sensitive context. [1]

  • Remove bogus comment (obsolete from prior commit). [2]
  • Remove void casts and type casts of NULL
  • Remove redundant declaration of 'quit'
  • Add additional const

Reported by: kib [1], vangyzen [2]

Details

Provenance
eadlerAuthored on
Parents
rS334539: Merge in an up to date kernel from head.
Branches
Unknown
Tags
Unknown