git: 3080f82b8b64 - main - ktrace: Make the data lengths table const
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Jun 2023 21:19:06 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=3080f82b8b644809d8731c4f5c72f1530c400eb3 commit 3080f82b8b644809d8731c4f5c72f1530c400eb3 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-06-01 21:12:42 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-06-01 21:18:23 +0000 ktrace: Make the data lengths table const No functional change intended. MFC after: 1 week --- sys/kern/kern_ktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index c2f747c474de..f7cbff098c51 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -112,7 +112,7 @@ struct ktr_request { STAILQ_ENTRY(ktr_request) ktr_list; }; -static int data_lengths[] = { +static const int data_lengths[] = { [KTR_SYSCALL] = offsetof(struct ktr_syscall, ktr_args), [KTR_SYSRET] = sizeof(struct ktr_sysret), [KTR_NAMEI] = 0,