Fixed a warning I introduced earlier.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@313 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-07-18 20:42:52 +00:00
parent bc934681ba
commit 5213b70b42

View File

@ -477,7 +477,7 @@ static int
elf_relocate(struct elf_image_info *image, const char *sym_prepend)
{
int res = B_NO_ERROR;
int i;
PRINT(("top of elf_relocate\n"));
// deal with the rels first
@ -498,12 +498,13 @@ elf_relocate(struct elf_image_info *image, const char *sym_prepend)
}
if (image->rela) {
dprintf("RELA relocations not supported\n");
#if ELF_TRACE
int i;
for(i = 1; i * (int)sizeof(struct Elf32_Rela) < image->rela_len; i++) {
dprintf("rela: type %d\n", ELF32_R_TYPE(image->rela[i].r_info));
}
#endif
dprintf("RELA relocations not supported\n");
return EPERM;
}
return res;