From nobody Wed Jun 21 05:37:49 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QmC2Q1fV2z4g0tp; Wed, 21 Jun 2023 05:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QmC2Q1Bdtz3Qmr; Wed, 21 Jun 2023 05:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687325870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+5lESTAlPx0ZqIOL3rAq9QWwBKZFtALDbgu5Lc4zmCo=; b=rJBatbcPCamzMouIRH5Jdv72YZcEOTEdf2YAs7jQf9KpPf15MohMTCU2rWOvb4x86iSjp4 4lp6JbxrKVceK95vMU4CQwUzzqwASmPJyF6VDOaEmKwS2JCT+OPFj8wy/Ozwufehteqo71 Dj9zZNGLgyf7j84RRF+rl+cJqcxjQbHxCSm/d1wUjy9s2i+E18yNAYP4/Nc1+8ey3Za9Md ubzybFrRcaL/MZzBvFjajC2O2W+3UzInUIwEjvNXgwZ4y27/phmx4pZI1tXlI4kDMwQ+mn Qut4Y54Ld//zWqNa0eVRb3o/iRsGRgVmdcuje0krN6Vivyy/m9yb8aZjyZd6uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687325870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+5lESTAlPx0ZqIOL3rAq9QWwBKZFtALDbgu5Lc4zmCo=; b=q/tU3PZECniE1qCua3XjZjjnnxh5WG6hunFowDKeMx7j/vk9t8jvHPfpIhgwP3aJXnrEyQ O5nra1/E9vlWX/BHUGh6NM7wNgygo8Su9+/4vPSLpEhGn0fqIPDYtzrHzzqf1fiOcHZwZQ BY4shN2MuHVBo+1dyhugaTyJsHsaDH7xT038UQOJ5+hq08Lla9nbnn00tkN9BPNiq5sxSq epTVaBO7R8EHNkGceae+FCQCDPasWXvjeJ/COkMlamBnT5zgqYFt8cux/7n3lo8WZgrwGr MVzQuqg2QRl59xxLYu2TkKWyV6exK+wO8HMPXICtSq+aReMLauQsPyYPDWXNhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687325870; a=rsa-sha256; cv=none; b=NhEuVSeV2QtKY8C0H032+IrKghGGl6e/vF3ECHHiUNKeVXM1r/t+VXbwPDJoaQ4/SLX4H5 m6v86247wOUFRCoPevEYKmCWPVETu8PBt5pq0mn6bUHO/h9dyqKRsbOA4rRJdavTpbdpAy a8P+X3VGvN9xyZKCcyDcnvW2kcXUdOn47vpu9lvk0E2XtNSSdr4x16jM5gL4BK6HWU/R0h KHoNtfHNLat0MDLQmgSC0bQDpzTXRo9Ep6wMTRvNcFXF16Ap1kcascwATZOqrUoOhSJ32A pekphBNY0x+xi75BZsPCuwCgMs52ch9d+olYBGEkAfgiChHvBuLqRbyFfSybvg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QmC2Q08HnzVB0; Wed, 21 Jun 2023 05:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35L5bnx5048312; Wed, 21 Jun 2023 05:37:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35L5bn3m048311; Wed, 21 Jun 2023 05:37:49 GMT (envelope-from git) Date: Wed, 21 Jun 2023 05:37:49 GMT Message-Id: <202306210537.35L5bn3m048311@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 5c6393451f58 - main - top(8): designate the sorted_state[] array as constant List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5c6393451f58c4e6c92410ae66e28c899bfacdb9 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=5c6393451f58c4e6c92410ae66e28c899bfacdb9 commit 5c6393451f58c4e6c92410ae66e28c899bfacdb9 Author: Konstantin Belousov AuthorDate: 2023-06-19 13:49:19 +0000 Commit: Konstantin Belousov CommitDate: 2023-06-21 05:36:33 +0000 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 --- 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) */