Usermode/ld-acess - Fixed warning when debug is enabled
authorJohn Hodge <[email protected]>
Sun, 23 Oct 2011 13:44:14 +0000 (21:44 +0800)
committerJohn Hodge <[email protected]>
Sun, 23 Oct 2011 13:44:14 +0000 (21:44 +0800)
Usermode/Libraries/ld-acess.so_src/elf.c

index 6051eaf..0877c22 100644 (file)
@@ -689,8 +689,11 @@ void *Elf64Relocate(void *Base, char **envp, const char *Filename)
                }
        }
 
-       DEBUGS("Elf64Relocate: Relocations done, return %p", (void *)(hdr->e_entry + baseDiff));
-       return (void *)(uintptr_t)(hdr->e_entry + baseDiff);
+       {
+       void *ret = (void *)(uintptr_t)(hdr->e_entry + baseDiff);
+       DEBUGS("Elf64Relocate: Relocations done, return %p", ret);
+       return ret;
+       }
 }
 
 int Elf64GetSymbol(void *Base, const char *Name, void **Ret, size_t *Size)

UCC git Repository :: git.ucc.asn.au