aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2017-03-03 12:35:25 -0800
committerMike Frysinger <vapier@gentoo.org>2018-06-07 00:41:30 -0400
commit7ae5fd56ba14071dc2ea51b3e205259932fe0a61 (patch)
tree5a5607a451091dc19138f6347365ba78a856ef54
parentpspax: constify all the pointers (diff)
downloadpax-utils-7ae5fd56ba14071dc2ea51b3e205259932fe0a61.tar.gz
pax-utils-7ae5fd56ba14071dc2ea51b3e205259932fe0a61.tar.bz2
pax-utils-7ae5fd56ba14071dc2ea51b3e205259932fe0a61.zip
paxldso: constify elf structs
-rw-r--r--paxldso.c4
1 files 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: