git: debcd4c05701 - main - libprocstat: constify psc_type_info[]
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Mar 2025 02:24:55 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=debcd4c05701be0ff48c6b350ed6b3a80e5f0b1f
commit debcd4c05701be0ff48c6b350ed6b3a80e5f0b1f
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-03-18 01:43:54 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-03-24 02:24:14 +0000
libprocstat: constify psc_type_info[]
Suggested by: markj
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D49372
---
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 83aabc50cc30..37ea9b7bb912 100644
--- a/lib/libprocstat/core.c
+++ b/lib/libprocstat/core.c
@@ -57,7 +57,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] = {