git: e30c54cd4447 - stable/13 - ktrace: Make the data lengths table const
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Jun 2023 13:16:47 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e30c54cd444760c6a1bdda07aa5e34b98a859dbb commit e30c54cd444760c6a1bdda07aa5e34b98a859dbb Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-06-01 21:12:42 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-06-08 13:16:26 +0000 ktrace: Make the data lengths table const No functional change intended. MFC after: 1 week (cherry picked from commit 3080f82b8b644809d8731c4f5c72f1530c400eb3) --- 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 9221a9ceb765..d2fe2a999dc3 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,