commit:     7ae5fd56ba14071dc2ea51b3e205259932fe0a61
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  3 20:35:25 2017 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Jun  7 04:41:30 2018 +0000
URL:        https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=7ae5fd56

paxldso: constify elf structs

 paxldso.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/paxldso.c b/paxldso.c
index ce64e6c..0cb7b01 100644
--- a/paxldso.c
+++ b/paxldso.c
@@ -68,7 +68,7 @@ static bool is_compatible(elfobj *elf, libentry_t *libent)
         */
 
        if (elf->elf_class == ELFCLASS32) {
-               Elf32_Ehdr *ehdr = EHDR32(elf->ehdr);
+               const Elf32_Ehdr *ehdr = EHDR32(elf->ehdr);
 
                switch (EGET(ehdr->e_machine)) {
                case EM_AARCH64:
@@ -101,7 +101,7 @@ static bool is_compatible(elfobj *elf, libentry_t *libent)
                        break;
                }
        } else {
-               Elf64_Ehdr *ehdr = EHDR64(elf->ehdr);
+               const Elf64_Ehdr *ehdr = EHDR64(elf->ehdr);
 
                switch (EGET(ehdr->e_machine)) {
                case EM_AARCH64:

Reply via email to