Fix compilation on big endian machines. Remove trailing whitespace.
This commit is contained in:
+3
-3
@@ -125,7 +125,7 @@ bool PackVmlinuxI386::canPack()
|
||||
return false;
|
||||
}
|
||||
|
||||
phdri = new Elf32_Phdr[(unsigned) ehdri.e_phnum];
|
||||
phdri = new Elf_LE32_Phdr[(unsigned) ehdri.e_phnum];
|
||||
fi->seek(ehdri.e_phoff, SEEK_SET);
|
||||
fi->readx(phdri, ehdri.e_phnum * sizeof(*phdri));
|
||||
|
||||
@@ -360,8 +360,8 @@ int PackVmlinuxI386::canUnpack()
|
||||
|
||||
// find the .shstrtab section
|
||||
char shstrtab[40];
|
||||
Elf32_Shdr *p, *p_shstrtab=0;
|
||||
shdri = new Elf32_Shdr[(unsigned) ehdri.e_shnum];
|
||||
Elf_LE32_Shdr *p, *p_shstrtab=0;
|
||||
shdri = new Elf_LE32_Shdr[(unsigned) ehdri.e_shnum];
|
||||
fi->seek(ehdri.e_shoff, SEEK_SET);
|
||||
fi->readx(shdri, ehdri.e_shnum * sizeof(*shdri));
|
||||
int j;
|
||||
|
||||
Reference in New Issue
Block a user