summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@amd.com>2009-07-17 17:48:01 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-22 15:40:55 -0500
commitc3862e8d082327d32c72a5188ea0629ab56c09ec (patch)
tree05e6f964bbd87958b510781b5a4c4ac5af88f432
parent0d0e17cf2572ec5f87cb300436ad8d94461b7ccf (diff)
downloadqemu-c3862e8d082327d32c72a5188ea0629ab56c09ec.tar.gz
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
-rw-r--r--bsd-user/elfload.c2
-rw-r--r--bsd-user/uaccess.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c
index de7b4de7d7..ed25e8519e 100644
--- a/bsd-user/elfload.c
+++ b/bsd-user/elfload.c
@@ -1295,7 +1295,7 @@ int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
}
if (interp_elf_ex.e_ident[0] != 0x7f ||
- strncmp(&interp_elf_ex.e_ident[1], "ELF",3) != 0) {
+ strncmp((char *)&interp_elf_ex.e_ident[1], "ELF",3) != 0) {
interpreter_type &= ~INTERPRETER_ELF;
}
diff --git a/bsd-user/uaccess.c b/bsd-user/uaccess.c
index 9ec1b23437..677f19c26e 100644
--- a/bsd-user/uaccess.c
+++ b/bsd-user/uaccess.c
@@ -51,7 +51,7 @@ abi_long target_strlen(abi_ulong guest_addr1)
ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1);
if (!ptr)
return -TARGET_EFAULT;
- len = qemu_strnlen(ptr, max_len);
+ len = qemu_strnlen((char *)ptr, max_len);
unlock_user(ptr, guest_addr, 0);
guest_addr += len;
/* we don't allow wrapping or integer overflow */