Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2025 02:41:53 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: 192aae0a9f62 - stable/14 - libprocstat: constify psc_type_info[]
Message-ID:  <202503310241.52V2frWc064312@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=192aae0a9f62417dd8558ee753f8853e224f0399

commit 192aae0a9f62417dd8558ee753f8853e224f0399
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-03-18 01:43:54 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-03-31 02:41:32 +0000

    libprocstat: constify psc_type_info[]
    
    (cherry picked from commit debcd4c05701be0ff48c6b350ed6b3a80e5f0b1f)
---
 lib/libprocstat/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libprocstat/core.c b/lib/libprocstat/core.c
index 1f64e728b0af..a3e500367920 100644
--- a/lib/libprocstat/core.c
+++ b/lib/libprocstat/core.c
@@ -58,7 +58,7 @@ struct procstat_core
 	GElf_Phdr	pc_phdr;
 };
 
-static struct psc_type_info {
+static const struct psc_type_info {
 	unsigned int	n_type;
 	int		structsize;
 } psc_type_info[PSC_TYPE_MAX] = {



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