git: ca461ad3dec4 - stable/13 - top(8): designate the sorted_state[] array as constant
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Jun 2023 00:57:15 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ca461ad3dec4cf90879bee18080ee31effe3652e commit ca461ad3dec4cf90879bee18080ee31effe3652e Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-06-19 13:49:19 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-06-27 21:04:14 +0000 top(8): designate the sorted_state[] array as constant (cherry picked from commit 5c6393451f58c4e6c92410ae66e28c899bfacdb9) --- usr.bin/top/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 2fbdb8551bb0..c11851ebce63 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -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) */