From nobody Wed Jun 28 00:57:15 2023 X-Original-To: dev-commits-src-all@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 4QrNTR3DQCz4kJJN; Wed, 28 Jun 2023 00:57:15 +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 4QrNTR2m25z46YM; Wed, 28 Jun 2023 00:57:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687913835; 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=NeKosSUkdUTpclSGs0IF8xbV4IvRMJpoPtwuSRnxfl0=; b=m8tbZiCy3Nja/n4ScyM5DyKZhPOMpDN+ZrGg0yOJK5ItLKvoZjI0l0g3VxWxohfo5GBGFz 7iP7WDkNqCHmWTi/6HQwcAUMsACO5dFH2SFPH8yxfW+b6SQqnlJzp2CejAPt7ocQ0jxSPM MUmzJQN6rV9Ie9RGGsqbPtBfhdbcbrlyQoG9JEudXRoO7Urd46k1t6EHt9F+L2qbimwL7Q UXSIQ2zb9jhM7f5a0AJtddtHTFJvjHrLG336mygCL4IBi79FsVapM5XIRR8DPMwWrXbxLn powIlNoQ+TTmSPJiWLOLF2BYTJM5q5T7eU80eb7Q8yB9OcK3W5Z2/zPJ7iAFSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687913835; 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=NeKosSUkdUTpclSGs0IF8xbV4IvRMJpoPtwuSRnxfl0=; b=HL2WJGZkQJWgDzwH1ij3y0EFvawLNR6hENvRu6Ilq9Nf1qfHdOF4pxjLmArzg0M9fNQl+t nz2bRS8p2JweIKZMWblp00uYYs9WGZRDnOVLQPGdlUuAcUwYP5Knt4YHG6xDIZCvs0T4Ug 8XFftrB+J0cXyuIPHZb+BgWhNProgvtnM8RWazwaljmmP10ZsbJ9C4HT5CoaLtLvoraDOC pUBU/oA7P/Ih6MBhd9ywU6qH04bswCLdtDAq/V7vyAmY+rFNUUzCbTL4UdvMHGFpG85WSE DfY83IbxEsPYpCjjiQ3XKmeIZryxUZzY3iZek9Z1SpEd6bneATnwNOps6FBNwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687913835; a=rsa-sha256; cv=none; b=K+53dsxMO46mql37MhHRzQrG5epTs+SsxQVPswHy+Ts9am406tdAswhphI9esDxUEubk3z 4oS6AzYMluWCZbRwYQ5MOKP1M9gUujN3drKp70mGoivTGmrFh35qAWz72H0JNG+F1jKnZx 9kGa9cf8/ZLYmrVU+cPJEGGgRSBrgW59toxzaI1BPr4Yj+daHH9ygKeRAiafdfVx1T5Mm1 gcMMR5QT6ARf2o7G3aySEh/mt9vZue9tn9T1/0BBMYfsk6eAWwYwcGShc0kpRUl72lZVcf 77kSVMACRMHqBqoKyjkWgd28NDSawwqYpHJMbkWZE854vsOo8WL40TzG27u5PA== 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 4QrNTR1rSLzF1V; Wed, 28 Jun 2023 00:57:15 +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 35S0vFZB079094; Wed, 28 Jun 2023 00:57:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35S0vFDc079093; Wed, 28 Jun 2023 00:57:15 GMT (envelope-from git) Date: Wed, 28 Jun 2023 00:57:15 GMT Message-Id: <202306280057.35S0vFDc079093@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: ca461ad3dec4 - stable/13 - top(8): designate the sorted_state[] array as constant List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: ca461ad3dec4cf90879bee18080ee31effe3652e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ca461ad3dec4cf90879bee18080ee31effe3652e commit ca461ad3dec4cf90879bee18080ee31effe3652e Author: Konstantin Belousov AuthorDate: 2023-06-19 13:49:19 +0000 Commit: Konstantin Belousov 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) */