]> git.proxmox.com Git - mirror_qemu.git/blobdiff - bsd-user/elfload.c
Drop more useless casts from void * to pointer
[mirror_qemu.git] / bsd-user / elfload.c
index f8edb22f2ab1fb52a67a5f62ceb8457dad463c03..fbcdc94b960dfa1a7605cc200c8b0de9bc078381 100644 (file)
@@ -156,7 +156,7 @@ static abi_ulong copy_elf_strings(int argc, char **argv, void **page,
             --p; --tmp; --len;
             if (--offset < 0) {
                 offset = p % TARGET_PAGE_SIZE;
-                pag = (char *)page[p / TARGET_PAGE_SIZE];
+                pag = page[p / TARGET_PAGE_SIZE];
                 if (!pag) {
                     pag = g_try_malloc0(TARGET_PAGE_SIZE);
                     page[p / TARGET_PAGE_SIZE] = pag;