top(8): designate the sorted_state[] array as constant

Reviewed by:	kevans
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D40607
This commit is contained in:
Konstantin Belousov 2023-06-19 16:49:19 +03:00
parent 813847e49e
commit 5c6393451f

View File

@ -1261,7 +1261,7 @@ compare_tid(const void *p1, const void *p2)
* that reflects this ordering.
*/
static int sorted_state[] = {
static const int sorted_state[] = {
0, /* not used */
3, /* sleep */
1, /* ABANDONED (WAIT) */