Fix compilation on big endian machines. Remove trailing whitespace.

This commit is contained in:
Markus F.X.J. Oberhumer
2006-07-03 01:40:59 +02:00
parent ec9d6c4fd2
commit b983e29fb0
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -125,7 +125,7 @@ bool PackVmlinuxI386::canPack()
return false; 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->seek(ehdri.e_phoff, SEEK_SET);
fi->readx(phdri, ehdri.e_phnum * sizeof(*phdri)); fi->readx(phdri, ehdri.e_phnum * sizeof(*phdri));
@@ -360,8 +360,8 @@ int PackVmlinuxI386::canUnpack()
// find the .shstrtab section // find the .shstrtab section
char shstrtab[40]; char shstrtab[40];
Elf32_Shdr *p, *p_shstrtab=0; Elf_LE32_Shdr *p, *p_shstrtab=0;
shdri = new Elf32_Shdr[(unsigned) ehdri.e_shnum]; shdri = new Elf_LE32_Shdr[(unsigned) ehdri.e_shnum];
fi->seek(ehdri.e_shoff, SEEK_SET); fi->seek(ehdri.e_shoff, SEEK_SET);
fi->readx(shdri, ehdri.e_shnum * sizeof(*shdri)); fi->readx(shdri, ehdri.e_shnum * sizeof(*shdri));
int j; int j;