summaryrefslogtreecommitdiff
path: root/bsd-user/uaccess.c
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@amd.com>2009-07-17 17:48:01 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-17 17:48:01 +0000
commitfff2a02f0cf103541cb49330f48731edeed8c957 (patch)
tree258992343c0b35974a45812d7d503dfe8de191d0 /bsd-user/uaccess.c
parenta2547a1378e9039ea54bdaa53e917b74e55487ee (diff)
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
Diffstat (limited to 'bsd-user/uaccess.c')
-rw-r--r--bsd-user/uaccess.c2
1 files changed, 1 insertions, 1 deletions
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 */