HomeFreeBSD

top(8): use designated initializers for sorted_state[]

Description

top(8): use designated initializers for sorted_state[]

Also correct comments for individual state, duplicating the S* constants
descriptions from sys/proc.h [*].

Reviewed by: kevans (previous version)
Noted by: Mark Millard <marklmi@yahoo.com> [*]
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D40607

Details

Provenance
kibAuthored on Jun 19 2023, 1:52 PM
Reviewer
kevans
Differential Revision
D40607: top(8): fix process state sorting
Parents
rG5c6393451f58: top(8): designate the sorted_state[] array as constant
Branches
Unknown
Tags
Unknown