aboutsummaryrefslogtreecommitdiff
path: root/bsd-user
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2016-04-05 10:46:33 -0400
committerPeter Maydell <peter.maydell@linaro.org>2016-04-05 17:49:41 +0100
commit43b0ea1a41bd0a02debd48a18e0b5460148e3f40 (patch)
treed3317986eb2323e1b726e64ffc011856a3d80326 /bsd-user
parentabd4556a17553b20ea2d3d06eb73ed12a271a36a (diff)
bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning
This is the same change as b55266b5 in linux-user. Signed-off-by: Ed Maste <emaste@freebsd.org> Message-id: 1459867593-72017-1-git-send-email-emaste@freebsd.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'bsd-user')
-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 b7b3a0682e..91e2067933 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((char *)ptr, max_len);
+ len = qemu_strnlen((const char *)ptr, max_len);
unlock_user(ptr, guest_addr, 0);
guest_addr += len;
/* we don't allow wrapping or integer overflow */