Skip to content

Commit

Permalink
bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning
Browse files Browse the repository at this point in the history
This is the same change as b55266b in linux-user.

Signed-off-by: Ed Maste <[email protected]>
Message-id: [email protected]
Signed-off-by: Peter Maydell <[email protected]>
  • Loading branch information
emaste authored and pm215 committed Apr 5, 2016
1 parent abd4556 commit 43b0ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bsd-user/uaccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 43b0ea1

Please sign in to comment.