HomeFreeBSD

top(1): several small bugfixes and nits

Description

top(1): several small bugfixes and nits

  • initialize all maybe uninitialized vars with bogus values. This shuts

up the compiler, and causes crashes if it changes later.

  • mark noreturn as noreturn
  • removed unused macro
  • handle x_procstate as runtime rather than pre-processor
  • avoid using void functions in condtionals

Tested with clang, gcc 7, gcc 9

Details

Provenance
eadlerAuthored on
Parents
rS335023: ps(1): fix some nits
Branches
Unknown
Tags
Unknown