mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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
This commit is contained in:
parent
169641f7dd
commit
364d1b2f8c
|
@ -2712,7 +2712,7 @@ __elfN(note_procstat_auxv)(void *arg, struct sbuf *sb, size_t *sizep)
|
||||||
|
|
||||||
#define MAX_NOTES_LOOP 4096
|
#define MAX_NOTES_LOOP 4096
|
||||||
bool
|
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,
|
const char *note_vendor, const Elf_Phdr *pnote,
|
||||||
bool (*cb)(const Elf_Note *, void *, bool *), void *cb_arg)
|
bool (*cb)(const Elf_Note *, void *, bool *), void *cb_arg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -123,7 +123,7 @@ void __elfN(prepare_notes)(struct thread *, struct note_info_list *,
|
||||||
void __elfN(size_segments)(struct thread *, struct sseg_closure *, int);
|
void __elfN(size_segments)(struct thread *, struct sseg_closure *, int);
|
||||||
size_t __elfN(register_note)(struct thread *, struct note_info_list *,
|
size_t __elfN(register_note)(struct thread *, struct note_info_list *,
|
||||||
int, outfunc_t, void *);
|
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 *,
|
const char *, const Elf_Phdr *,
|
||||||
bool (*)(const Elf_Note *, void *, bool *), void *);
|
bool (*)(const Elf_Note *, void *, bool *), void *);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue