Commit fff2a02f0cf103541cb49330f48731edeed8c957
Committed by
Blue Swirl
1 parent
a2547a13
fix build warnings
Hi! Attached patch fixes build warnings due to use of different pointer signedness. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
Showing
2 changed files
with
2 additions
and
2 deletions
bsd-user/elfload.c
@@ -1295,7 +1295,7 @@ int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, | @@ -1295,7 +1295,7 @@ int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, | ||
1295 | } | 1295 | } |
1296 | 1296 | ||
1297 | if (interp_elf_ex.e_ident[0] != 0x7f || | 1297 | if (interp_elf_ex.e_ident[0] != 0x7f || |
1298 | - strncmp(&interp_elf_ex.e_ident[1], "ELF",3) != 0) { | 1298 | + strncmp((char *)&interp_elf_ex.e_ident[1], "ELF",3) != 0) { |
1299 | interpreter_type &= ~INTERPRETER_ELF; | 1299 | interpreter_type &= ~INTERPRETER_ELF; |
1300 | } | 1300 | } |
1301 | 1301 |
bsd-user/uaccess.c
@@ -51,7 +51,7 @@ abi_long target_strlen(abi_ulong guest_addr1) | @@ -51,7 +51,7 @@ abi_long target_strlen(abi_ulong guest_addr1) | ||
51 | ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1); | 51 | ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1); |
52 | if (!ptr) | 52 | if (!ptr) |
53 | return -TARGET_EFAULT; | 53 | return -TARGET_EFAULT; |
54 | - len = qemu_strnlen(ptr, max_len); | 54 | + len = qemu_strnlen((char *)ptr, max_len); |
55 | unlock_user(ptr, guest_addr, 0); | 55 | unlock_user(ptr, guest_addr, 0); |
56 | guest_addr += len; | 56 | guest_addr += len; |
57 | /* we don't allow wrapping or integer overflow */ | 57 | /* we don't allow wrapping or integer overflow */ |