AcessNative - Fixing crashes
[tpg/acess2.git] / KernelLand / Kernel / bin / elf.c
index 16da915..83dfa8a 100644 (file)
@@ -7,7 +7,7 @@
 #include <binary.h>\r
 \r
 #define _COMMON_H\r
-#define SysDebug(...)  LOG(v)\r
+#define SysDebug(v...) LOG(v)\r
 #define DISABLE_ELF64\r
 void   *GetSymbol(const char *Name, size_t *Size);\r
 void   *GetSymbol(const char *Name, size_t *Size) { Uint val; Binary_GetSymbol(Name, &val); if(Size)*Size=0; return (void*)val; };\r
@@ -50,7 +50,7 @@ tBinary *Elf_Load(int fp)
        switch(hdr.e_ident[4])  // EI_CLASS\r
        {\r
        case ELFCLASS32:\r
-               return Elf_Load32(fp, (Elf32_Ehdr*)&hdr);\r
+               return Elf_Load32(fp, (void*)&hdr);\r
        case ELFCLASS64:\r
                return Elf_Load64(fp, &hdr);\r
        default:\r

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