Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jun 2023 00:57:15 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: ca461ad3dec4 - stable/13 - top(8): designate the sorted_state[] array as constant
Message-ID:  <202306280057.35S0vFDc079093@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)	*/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306280057.35S0vFDc079093>