git: 364d1b2f8c0a - main - imgact_elf: Add const to the checknote parameter to __elfN(parse_notes)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Mar 2024 04:53:41 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=364d1b2f8c0a7f4caaa7f3d184f4cfece8f22108 commit 364d1b2f8c0a7f4caaa7f3d184f4cfece8f22108 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2024-03-05 04:52:21 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2024-03-05 04:52:21 +0000 imgact_elf: Add const to the checknote parameter to __elfN(parse_notes) Reviewed by: imp, kib Sponsored by: University of Cambridge, Google, Inc. Differential Revision: https://reviews.freebsd.org/D44215 --- sys/kern/imgact_elf.c | 2 +- sys/sys/imgact_elf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 3863f0a2fdae..4cee366ed747 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -2712,7 +2712,7 @@ __elfN(note_procstat_auxv)(void *arg, struct sbuf *sb, size_t *sizep) #define MAX_NOTES_LOOP 4096 bool -__elfN(parse_notes)(const struct image_params *imgp, Elf_Note *checknote, +__elfN(parse_notes)(const struct image_params *imgp, const Elf_Note *checknote, const char *note_vendor, const Elf_Phdr *pnote, bool (*cb)(const Elf_Note *, void *, bool *), void *cb_arg) { diff --git a/sys/sys/imgact_elf.h b/sys/sys/imgact_elf.h index 92995d2f2dc3..c9444e5aec41 100644 --- a/sys/sys/imgact_elf.h +++ b/sys/sys/imgact_elf.h @@ -123,7 +123,7 @@ void __elfN(prepare_notes)(struct thread *, struct note_info_list *, void __elfN(size_segments)(struct thread *, struct sseg_closure *, int); size_t __elfN(register_note)(struct thread *, struct note_info_list *, int, outfunc_t, void *); -bool __elfN(parse_notes)(const struct image_params *, Elf_Note *, +bool __elfN(parse_notes)(const struct image_params *, const Elf_Note *, const char *, const Elf_Phdr *, bool (*)(const Elf_Note *, void *, bool *), void *);